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 10:54Victor MerckléVictor MerckléScore: 3,876Success
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 10:573,84711,275,9263,386,00002,117,632stderr
2Jul 9, 2026 10:573,85911,296,8913,396,00002,117,632stderr
3Jul 9, 2026 10:573,86511,357,7993,402,00002,117,632stderr
4Jul 9, 2026 10:573,86711,286,1073,403,00002,117,632stderr
5Jul 9, 2026 10:573,87611,315,3213,411,00002,117,632stderr
6Jul 9, 2026 10:573,87811,317,4243,413,00002,117,632stderr
7Jul 9, 2026 10:573,88411,278,0193,418,00002,117,632stderr
8Jul 9, 2026 10:573,97011,297,3773,494,00002,117,632stderr
9Jul 9, 2026 10:573,99311,355,6093,514,00002,117,632stderr