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 10:04Victor MerckléVictor MerckléScore: 4,689Success
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 10:074,55211,789,3524,006,00002,117,632stderr
2Jul 3, 2026 10:074,55611,773,4474,010,00002,117,632stderr
3Jul 3, 2026 10:074,58211,790,2944,033,00002,117,632stderr
4Jul 3, 2026 10:074,68012,195,9314,119,00002,117,632stderr
5Jul 3, 2026 10:074,68911,842,8624,127,00002,117,632stderr
6Jul 3, 2026 10:074,70212,200,5264,138,00002,117,632stderr
7Jul 3, 2026 10:074,71212,223,1534,147,00002,117,632stderr
8Jul 3, 2026 10:074,71712,129,5564,151,00002,117,632stderr
9Jul 3, 2026 10:074,78412,081,3934,210,00002,117,632stderr