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 01:58Victor MerckléVictor MerckléScore: 4,534Success
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 02:014,39711,702,3133,870,00002,117,632stderr
2Jul 5, 2026 02:014,41211,697,9113,883,00002,117,632stderr
3Jul 5, 2026 02:014,47511,748,1033,938,00002,117,632stderr
4Jul 5, 2026 02:014,51812,020,5913,976,00002,117,632stderr
5Jul 5, 2026 02:014,53411,733,3263,990,00002,117,632stderr
6Jul 5, 2026 02:014,54611,775,0094,001,00002,117,632stderr
7Jul 5, 2026 02:014,55511,863,0604,009,00002,117,632stderr
8Jul 5, 2026 02:014,68711,875,3014,125,00002,117,632stderr
9Jul 5, 2026 02:014,71811,986,3474,152,00002,117,632stderr