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 02:59Victor MerckléVictor MerckléScore: 4,563Success
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:024,51511,834,8943,974,00002,117,632stderr
2Jul 6, 2026 03:024,52711,829,3873,984,00002,117,632stderr
3Jul 6, 2026 03:024,53011,812,0823,987,00002,117,632stderr
4Jul 6, 2026 03:024,54411,807,2093,999,00002,117,632stderr
5Jul 6, 2026 03:024,56311,829,6894,016,00002,117,632stderr
6Jul 6, 2026 03:024,66311,928,0644,104,00002,117,632stderr
7Jul 6, 2026 03:024,66812,206,8244,108,00002,117,632stderr
8Jul 6, 2026 03:024,68911,841,5654,127,00002,117,632stderr
9Jul 6, 2026 03:024,70212,295,3434,138,00002,117,632stderr