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 listJun 19, 2026 18:13Victor MerckléVictor MerckléScore: 7,146Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 19, 2026 18:156,92613,342,3926,095,00002,113,536
2Jun 19, 2026 18:157,05013,655,0126,204,00002,113,536
3Jun 19, 2026 18:157,05113,862,0626,205,00002,113,536
4Jun 19, 2026 18:157,08613,616,9376,236,00002,113,536
5Jun 19, 2026 18:157,14613,736,7636,289,00002,113,536
6Jun 19, 2026 18:157,15913,722,8346,300,00002,113,536
7Jun 19, 2026 18:157,16113,720,1166,302,00002,113,536
8Jun 19, 2026 18:157,37714,208,8256,492,00002,113,536
9Jun 19, 2026 18:157,46413,985,9996,569,00002,113,536