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 8, 2026 23:07Victor MerckléVictor MerckléScore: 3,769Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2026 23:093,67111,114,9003,231,00002,117,632stderr
2Jul 8, 2026 23:093,68011,152,8653,239,00002,117,632stderr
3Jul 8, 2026 23:093,68911,203,6433,247,00002,117,632stderr
4Jul 8, 2026 23:093,71111,143,8913,266,00002,117,632stderr
5Jul 8, 2026 23:093,76911,165,7893,317,00002,117,632stderr
6Jul 8, 2026 23:093,77011,157,0193,318,00002,117,632stderr
7Jul 8, 2026 23:093,80011,173,4423,344,00002,117,632stderr
8Jul 8, 2026 23:093,83211,295,9073,373,00002,117,632stderr
9Jul 8, 2026 23:093,85411,242,4643,392,00002,117,632stderr