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 7, 2026 18:43Victor MerckléVictor MerckléScore: 3,619Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2026 18:463,60511,031,5723,173,00002,117,632stderr
2Jul 7, 2026 18:463,61011,046,5333,177,00002,117,632stderr
3Jul 7, 2026 18:463,61011,077,4713,177,00002,117,632stderr
4Jul 7, 2026 18:463,61911,072,7253,185,00002,117,632stderr
5Jul 7, 2026 18:463,61911,088,0143,185,00002,117,632stderr
6Jul 7, 2026 18:463,62811,092,2893,193,00002,117,632stderr
7Jul 7, 2026 18:463,63611,074,8843,200,00002,117,632stderr
8Jul 7, 2026 18:463,66011,195,1923,221,00002,117,632stderr
9Jul 7, 2026 18:463,71711,062,3653,271,00002,117,632stderr