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 listJan 20, 2026 11:22Johan SannemoJohan SannemoScore: 15,816Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 20, 2026 11:2215,76830,587,47610,903,0002,973,0002,367,488
2Jan 20, 2026 11:2215,80334,125,05611,921,0001,986,0002,289,664
3Jan 20, 2026 11:2215,81441,058,68711,928,0001,988,0002,289,664
4Jan 20, 2026 11:2215,81636,883,17810,936,0002,982,0002,285,568
5Jan 20, 2026 11:2215,87232,430,70811,972,0001,995,0002,338,816
6Jan 20, 2026 11:2215,91529,823,07011,004,0003,001,0002,289,664