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 listMay 19, 2026 07:14Josu San MartinJosu San MartinScore: 6,792,772Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2026 07:176,767,1875,966,702,1205,951,119,0004,006,0002,113,536
2May 19, 2026 07:176,767,5905,968,764,5115,954,480,0001,000,0002,113,536
3May 19, 2026 07:176,767,6185,967,053,6685,954,504,0001,000,0002,113,536
4May 19, 2026 07:176,772,3475,969,629,0705,958,666,0001,000,0002,113,536
5May 19, 2026 07:176,792,7725,989,124,8975,975,589,0002,051,0002,113,536
6May 19, 2026 07:176,793,9975,991,318,3335,976,703,0002,015,0002,113,536
7May 19, 2026 07:176,800,1785,993,952,6415,983,157,0001,000,0002,113,536
8May 19, 2026 07:176,817,2276,010,769,8565,998,160,0001,000,0002,113,536
9May 19, 2026 07:176,865,0016,054,178,5406,040,199,0001,002,0002,113,536