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 listFeb 20, 2026 12:47zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:15M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:1508,669,4301,097,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 05:1509,981,2511,093,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 05:1509,299,8471,105,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 20, 2026 12:483,08619,407,6662,716,00002,428,928
5Feb 20, 2026 12:503,09024,554,9102,719,00002,433,024
6Feb 20, 2026 12:503,09018,454,2502,719,00002,437,120
7Feb 20, 2026 12:493,09124,030,4602,720,00002,437,120
8Feb 20, 2026 12:493,12020,104,3782,746,00002,441,216
9Feb 20, 2026 12:493,12218,197,4492,747,00002,437,120
10Feb 20, 2026 12:493,12818,735,4062,753,00002,437,120
11Feb 20, 2026 12:473,13920,559,9282,762,00002,424,832
12Feb 20, 2026 12:473,14121,306,7672,764,00002,535,424
13Feb 20, 2026 12:503,14723,944,8872,769,00002,433,024
14Feb 20, 2026 12:493,15223,444,5452,774,00002,437,120
15Feb 20, 2026 12:483,17214,925,4942,791,00002,535,424
16Feb 20, 2026 12:473,17816,358,4852,797,00002,437,120
17Feb 20, 2026 12:473,19423,222,8122,811,00002,437,120
18Feb 20, 2026 12:473,20116,320,4522,817,00002,437,120
19Feb 20, 2026 12:453,20822,515,9402,823,00002,428,928
20Feb 20, 2026 12:463,22218,290,7792,835,00002,531,328
21Feb 20, 2026 12:503,27018,815,4101,919,000959,0002,433,024
22Feb 20, 2026 12:463,27718,819,1641,923,000961,0002,433,024
23Feb 20, 2026 12:443,28120,201,088962,0001,925,0002,478,080
24Feb 20, 2026 12:503,28318,485,9191,926,000963,0002,424,832
25Feb 20, 2026 12:443,30520,470,0302,908,00002,510,848
26Feb 20, 2026 12:493,30717,298,677970,0001,940,0002,437,120
27Feb 20, 2026 12:443,31418,439,5861,944,000972,0002,433,024
28Feb 20, 2026 12:503,31718,379,5701,946,000973,0002,437,120
29Feb 20, 2026 12:463,31719,106,7501,946,000973,0002,433,024
30Feb 20, 2026 12:473,31818,406,9621,947,000973,0002,277,376
31Feb 20, 2026 12:493,32022,754,6801,948,000974,0002,437,120
32Feb 20, 2026 12:463,32420,809,1002,925,00002,437,120
33Feb 20, 2026 12:453,32518,254,4772,926,00002,424,832
34Feb 20, 2026 12:503,32720,482,4201,952,000976,0002,428,928
35Feb 20, 2026 12:463,32723,927,7941,952,000976,0002,437,120
36Feb 20, 2026 12:503,33917,584,1811,959,000979,0002,437,120
37Feb 20, 2026 12:473,33919,842,7511,959,000979,0002,433,024
38Feb 20, 2026 12:483,34518,186,6771,963,000981,0002,433,024
39Feb 20, 2026 12:493,43620,379,8352,016,0001,008,0002,277,376
40Feb 20, 2026 12:453,47017,395,0482,036,0001,018,0002,433,024
41Feb 20, 2026 12:493,55922,821,9752,088,0001,044,0002,273,280
42Feb 20, 2026 12:503,62220,041,9312,125,0001,062,0002,428,928
43Feb 20, 2026 12:473,68622,866,6332,163,0001,081,0002,433,024
44Feb 20, 2026 12:473,68820,585,6643,245,00002,433,024
45Feb 20, 2026 12:473,76417,575,3613,312,00002,433,024
46Feb 20, 2026 12:463,79121,041,0563,336,00002,433,024
47Feb 20, 2026 12:473,85319,880,2353,391,00002,535,424
48Feb 20, 2026 12:473,85822,173,1453,395,00002,428,928