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 6, 2026 04:25zielajzielajScore: 197,098Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 6, 2026 04:24195,811194,694,578172,314,00002,293,760
2Feb 6, 2026 04:25196,413205,748,406171,844,000999,0002,277,376
3Feb 6, 2026 04:24196,465197,349,680170,891,0001,998,0002,297,856
4Feb 6, 2026 04:25197,098194,582,679173,446,00002,277,376
5Feb 6, 2026 04:25197,475196,368,880172,780,000998,0002,535,424
6Feb 6, 2026 04:24197,936200,314,218173,183,0001,001,0002,297,856