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 listJul 6, 2026 03:50Victor MerckléVictor MerckléScore: 3,996Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 6, 2026 03:533,90911,254,4643,440,00002,117,632stderr
2Jul 6, 2026 03:533,92111,250,5893,451,00002,117,632stderr
3Jul 6, 2026 03:533,99311,267,5363,514,00002,117,632stderr
4Jul 6, 2026 03:533,99611,240,0783,517,00002,117,632stderr
5Jul 6, 2026 03:533,99611,280,5473,517,00002,117,632stderr
6Jul 6, 2026 03:533,99711,661,3153,518,00002,117,632stderr
7Jul 6, 2026 03:534,01811,662,9783,536,00002,117,632stderr
8Jul 6, 2026 03:534,01911,719,0843,537,00002,117,632stderr
9Jul 6, 2026 03:534,02711,667,0393,544,00002,117,632stderr