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 listDec 27, 2025 16:11Josu San MartinJosu San MartinScore: 84,294Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 27, 2025 16:0784,01098,495,70872,930,000999,0002,289,664
2Dec 27, 2025 16:0784,098100,716,95972,006,0002,000,0002,371,584
3Dec 27, 2025 16:0784,10597,417,65773,012,0001,000,0002,289,664
4Dec 27, 2025 16:0784,15997,210,77772,059,0002,001,0002,355,200
5Dec 27, 2025 16:1184,178100,247,80872,075,0002,002,0002,367,488
6Dec 27, 2025 16:1184,18496,995,99973,081,0001,001,0002,289,664
7Dec 27, 2025 16:0784,27096,978,19673,156,0001,002,0002,289,664
8Dec 27, 2025 16:0784,29498,169,40573,177,0001,002,0002,289,664
9Dec 27, 2025 16:1184,34494,981,67372,217,0002,006,0002,289,664
10Dec 27, 2025 16:1184,401108,060,22873,270,0001,003,0002,363,392
11Dec 27, 2025 16:0784,425100,882,36874,294,00002,371,584
12Dec 27, 2025 16:0784,46396,830,51673,323,0001,004,0002,367,488
13Dec 27, 2025 16:1184,68196,803,80373,512,0001,007,0002,478,080
14Dec 27, 2025 16:0784,793100,157,45674,618,00002,371,584
15Dec 27, 2025 16:1184,827100,334,01673,640,0001,008,0002,465,792