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 9, 2026 19:22Victor MerckléVictor MerckléScore: 3,606Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 9, 2026 19:243,59811,046,5723,167,00002,117,632stderr
2Jul 9, 2026 19:243,60111,050,3203,169,00002,117,632stderr
3Jul 9, 2026 19:243,60311,080,5203,171,00002,117,632stderr
4Jul 9, 2026 19:243,60311,041,6883,171,00002,117,632stderr
5Jul 9, 2026 19:243,60611,070,6603,174,00002,117,632stderr
6Jul 9, 2026 19:243,61911,034,2173,185,00002,117,632stderr
7Jul 9, 2026 19:243,71011,064,2163,265,00002,117,632stderr
8Jul 9, 2026 19:243,71511,135,1023,270,00002,117,632stderr
9Jul 9, 2026 19:243,73611,560,0953,288,00002,117,632stderr