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 19:34Victor MerckléVictor MerckléScore: 6,988Success
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 19:366,89613,536,8436,069,00002,113,536
2Jun 19, 2026 19:366,91414,461,9046,085,00002,113,536
3Jun 19, 2026 19:366,92813,350,4596,097,00002,113,536
4Jun 19, 2026 19:366,98213,757,5496,145,00002,113,536
5Jun 19, 2026 19:366,98813,410,4996,150,00002,113,536
6Jun 19, 2026 19:366,99313,932,5256,154,00002,113,536
7Jun 19, 2026 19:367,06915,941,2726,221,00002,113,536
8Jun 19, 2026 19:367,09213,677,3806,241,00002,113,536
9Jun 19, 2026 19:367,38613,940,3516,500,00002,113,536