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 listSep 2, 2026 20:55Victor MerckléVictor MerckléScore: 2,856Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 2, 2026 20:582,82610,649,9382,487,000024,576stderr
2Sep 2, 2026 20:582,83511,249,8512,495,000024,576stderr
3Sep 2, 2026 20:582,83510,663,9252,495,000024,576stderr
4Sep 2, 2026 20:582,85511,988,1432,513,000024,576stderr
5Sep 2, 2026 20:582,85611,252,5372,514,000024,576stderr
6Sep 2, 2026 20:582,86010,669,3592,517,000024,576stderr
7Sep 2, 2026 20:582,86211,217,1342,519,000024,576stderr
8Sep 2, 2026 20:582,86211,281,5162,519,000024,576stderr
9Sep 2, 2026 20:582,87810,713,5522,533,000024,576stderr