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 2, 2026 05:47Victor MerckléVictor MerckléScore: 4,700Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2026 05:504,63611,871,5614,080,00002,117,632stderr
2Jul 2, 2026 05:504,68611,800,2394,124,00002,117,632stderr
3Jul 2, 2026 05:504,68912,138,7584,127,00002,117,632stderr
4Jul 2, 2026 05:504,69311,880,3124,130,00002,117,632stderr
5Jul 2, 2026 05:504,70011,846,4464,136,00002,117,632stderr
6Jul 2, 2026 05:504,70112,019,6174,137,00002,117,632stderr
7Jul 2, 2026 05:504,70911,858,2234,144,00002,117,632stderr
8Jul 2, 2026 05:504,76712,448,1844,195,00002,117,632stderr
9Jul 2, 2026 05:504,77618,887,9404,203,00002,117,632stderr