Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listOct 6, 2023 08:30matsuoka-601matsuoka-601Error
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2023 08:2900000Error: expected "51027311635587 ", got "51027311635504 "
2Oct 6, 2023 08:3017,82775,322,87315,687,89902,244,608
3Oct 6, 2023 08:3017,83236,405,51915,692,00002,523,136
4Oct 6, 2023 08:3017,84935,247,79913,613,0002,094,0002,465,792
5Oct 6, 2023 08:3017,85232,797,23614,663,0001,047,0002,473,984
6Oct 6, 2023 08:3017,85372,473,52815,710,41902,269,184
7Oct 6, 2023 08:3017,85947,042,11513,621,0002,095,0002,404,352
8Oct 6, 2023 08:3017,87361,462,23815,728,20502,318,336
9Oct 6, 2023 08:3017,91779,903,06415,766,92902,314,240
10Oct 6, 2023 08:3017,92450,050,83813,670,0002,103,0002,453,504
11Oct 6, 2023 08:3017,92742,832,21413,673,0002,103,0002,514,944
12Oct 6, 2023 08:3017,95196,149,68815,797,13202,203,648
13Oct 6, 2023 08:3018,01832,720,58711,892,0003,964,0002,445,312
14Oct 6, 2023 08:3018,04136,308,60211,907,0003,969,0002,412,544
15Oct 6, 2023 08:3018,06431,752,62514,903,000993,0002,478,080
16Oct 6, 2023 08:3018,06533,972,67313,910,0001,987,0002,408,448
17Oct 6, 2023 08:3018,06642,536,72313,911,0001,987,0002,424,832
18Oct 6, 2023 08:3018,06932,525,32212,920,0002,981,0002,412,544
19Oct 6, 2023 08:3018,07336,938,82313,916,0001,988,0002,437,120
20Oct 6, 2023 08:3018,07434,277,17711,929,0003,976,0002,408,448
21Oct 6, 2023 08:3018,07634,572,84212,925,0002,982,0002,482,176
22Oct 6, 2023 08:3018,08644,306,06012,932,0002,984,0002,428,928
23Oct 6, 2023 08:3018,08833,230,39514,923,000994,0002,465,792
24Oct 6, 2023 08:3018,10532,751,48713,941,0001,991,0002,363,392
25Oct 6, 2023 08:3020,63786,679,98918,160,70102,220,032