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:18zielajzielajScore: 3,332Success
Source Code

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

Challenge History

No challenges yet.

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