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 5, 2026 05:33Victor MerckléVictor MerckléScore: 4,528Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 5, 2026 05:364,39411,687,5763,867,00002,117,632stderr
2Jul 5, 2026 05:364,41511,723,2573,886,00002,117,632stderr
3Jul 5, 2026 05:364,41711,828,7373,887,00002,117,632stderr
4Jul 5, 2026 05:364,42611,739,9463,895,00002,117,632stderr
5Jul 5, 2026 05:364,52811,802,6063,985,00002,117,632stderr
6Jul 5, 2026 05:364,53512,098,0653,991,00002,117,632stderr
7Jul 5, 2026 05:364,54511,762,8274,000,00002,117,632stderr
8Jul 5, 2026 05:364,55611,773,8384,010,00002,117,632stderr
9Jul 5, 2026 05:364,60411,808,2324,052,00002,117,632stderr