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 7, 2026 18:11Victor MerckléVictor MerckléScore: 3,682Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2026 18:143,58911,028,6093,159,00002,117,632stderr
2Jul 7, 2026 18:143,59011,060,5033,160,00002,117,632stderr
3Jul 7, 2026 18:143,60511,010,3103,173,00002,117,632stderr
4Jul 7, 2026 18:143,67311,071,5173,233,00002,117,632stderr
5Jul 7, 2026 18:143,68213,047,4963,241,00002,117,632stderr
6Jul 7, 2026 18:143,69311,090,7483,250,00002,117,632stderr
7Jul 7, 2026 18:143,69411,404,9713,251,00002,117,632stderr
8Jul 7, 2026 18:143,70511,485,2823,261,00002,117,632stderr
9Jul 7, 2026 18:143,88211,199,3573,417,00002,117,632stderr