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 3, 2026 01:59Victor MerckléVictor MerckléScore: 4,442Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2026 02:024,41211,653,4373,883,00002,117,632stderr
2Jul 3, 2026 02:024,41411,714,6143,885,00002,117,632stderr
3Jul 3, 2026 02:024,42511,702,0123,894,00002,117,632stderr
4Jul 3, 2026 02:024,43811,806,5023,906,00002,117,632stderr
5Jul 3, 2026 02:024,44211,697,6943,909,00002,117,632stderr
6Jul 3, 2026 02:024,47811,758,1823,941,00002,117,632stderr
7Jul 3, 2026 02:024,53011,687,6953,987,00002,117,632stderr
8Jul 3, 2026 02:024,55111,976,4044,005,00002,117,632stderr
9Jul 3, 2026 02:024,81812,056,6654,240,00002,117,632stderr