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 7, 2026 18:27Victor MerckléVictor MerckléScore: 3,813Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2026 18:303,71311,130,6253,268,00002,117,632stderr
2Jul 7, 2026 18:303,73811,614,2653,290,00002,117,632stderr
3Jul 7, 2026 18:303,74811,120,8323,299,00002,117,632stderr
4Jul 7, 2026 18:303,80611,122,2003,350,00002,117,632stderr
5Jul 7, 2026 18:303,81311,208,1823,356,00002,117,632stderr
6Jul 7, 2026 18:303,82211,166,5013,364,00002,117,632stderr
7Jul 7, 2026 18:303,82311,150,6523,365,00002,117,632stderr
8Jul 7, 2026 18:303,83011,100,5203,371,00002,117,632stderr
9Jul 7, 2026 18:303,84311,124,0953,382,00002,117,632stderr