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 03:26Victor MerckléVictor MerckléScore: 3,738Success
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 03:293,62711,115,8733,192,00002,117,632stderr
2Jul 7, 2026 03:293,65111,144,7973,213,00002,117,632stderr
3Jul 7, 2026 03:293,72811,054,6953,281,00002,117,632stderr
4Jul 7, 2026 03:293,73611,080,7223,288,00002,117,632stderr
5Jul 7, 2026 03:293,73811,116,4523,290,00002,117,632stderr
6Jul 7, 2026 03:293,74511,102,4783,296,00002,117,632stderr
7Jul 7, 2026 03:293,74511,075,3523,296,00002,117,632stderr
8Jul 7, 2026 03:293,74711,165,9663,298,00002,117,632stderr
9Jul 7, 2026 03:293,76111,205,1793,310,00002,117,632stderr