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 9, 2026 01:18zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:19M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:1908,334,6751,106,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 05:1908,336,9321,113,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 05:1909,632,5261,027,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 9, 2026 01:183,30318,773,7342,907,00002,379,776
5Feb 9, 2026 01:203,30917,495,6402,912,00002,506,752
6Feb 9, 2026 01:173,31721,887,9661,946,000973,0002,371,584
7Feb 9, 2026 01:173,31717,263,2381,946,000973,0002,371,584
8Feb 9, 2026 01:173,31919,723,0542,921,00002,506,752
9Feb 9, 2026 01:183,32021,966,0482,922,00002,383,872
10Feb 9, 2026 01:173,32517,337,8711,951,000975,0002,379,776
11Feb 9, 2026 01:203,32516,978,2251,951,000975,0002,527,232
12Feb 9, 2026 01:183,32817,738,9961,953,000976,0002,383,872
13Feb 9, 2026 01:173,33118,075,1761,954,000977,0002,379,776
14Feb 9, 2026 01:183,33226,248,0262,932,00002,510,848
15Feb 9, 2026 01:183,34518,436,3471,963,000981,0002,371,584
16Feb 9, 2026 01:173,34818,348,5211,964,000982,0002,375,680
17Feb 9, 2026 01:183,34924,803,3272,947,00002,379,776
18Feb 9, 2026 01:183,35623,665,8051,969,000984,0002,375,680
19Feb 9, 2026 01:173,41916,720,7672,006,0001,003,0002,486,272
20Feb 9, 2026 01:203,46719,769,7702,034,0001,017,0002,531,328
21Feb 9, 2026 01:183,49918,034,3342,053,0001,026,0002,375,680
22Feb 9, 2026 01:183,99223,091,0703,513,00002,371,584
23Feb 9, 2026 01:174,01619,726,0293,534,00002,371,584
24Feb 9, 2026 01:174,02416,578,2553,541,00002,531,328