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 2, 2026 19:45Victor MerckléVictor MerckléScore: 4,736Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2026 19:484,64511,862,1134,088,00002,117,632stderr
2Jul 2, 2026 19:484,67911,930,1074,118,00002,117,632stderr
3Jul 2, 2026 19:484,72511,852,6934,158,00002,117,632stderr
4Jul 2, 2026 19:484,72911,964,9304,162,00002,117,632stderr
5Jul 2, 2026 19:484,73611,821,2594,168,00002,117,632stderr
6Jul 2, 2026 19:484,73811,854,6314,170,00002,117,632stderr
7Jul 2, 2026 19:484,74511,914,9054,176,00002,117,632stderr
8Jul 2, 2026 19:484,75511,917,3964,185,00002,117,632stderr
9Jul 2, 2026 19:484,86211,920,2324,279,00002,117,632stderr