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 18:40Josu San MartinJosu San MartinScore: 73,933Success
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 18:3973,70794,284,65562,867,0001,995,0002,289,664
2Dec 27, 2025 18:3973,72088,138,59063,876,000998,0002,289,664
3Dec 27, 2025 18:3973,80090,928,91763,945,000999,0002,289,664
4Dec 27, 2025 18:3973,83890,796,24363,978,000999,0002,490,368
5Dec 27, 2025 18:3973,87793,715,48064,012,0001,000,0002,367,488
6Dec 27, 2025 18:3973,91988,991,91663,048,0002,001,0002,371,584
7Dec 27, 2025 18:3973,93386,611,14564,061,0001,000,0002,289,664
8Dec 27, 2025 18:4073,99492,166,74363,112,0002,003,0002,289,664
9Dec 27, 2025 18:4074,01888,343,29563,132,0002,004,0002,289,664
10Dec 27, 2025 18:3974,09185,511,05963,194,0002,006,0002,486,272
11Dec 27, 2025 18:3974,09190,837,39464,197,0001,003,0002,289,664
12Dec 27, 2025 18:4074,18990,863,69863,278,0002,008,0002,363,392