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 3, 2026 13:03Victor MerckléVictor MerckléScore: 4,521Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2026 13:074,40911,643,4843,880,00002,117,632stderr
2Jul 3, 2026 13:074,41111,630,7343,882,00002,117,632stderr
3Jul 3, 2026 13:074,43811,636,7233,906,00002,117,632stderr
4Jul 3, 2026 13:074,44311,651,1163,910,00002,117,632stderr
5Jul 3, 2026 13:074,52111,644,5253,979,00002,117,632stderr
6Jul 3, 2026 13:074,53411,715,3213,990,00002,117,632stderr
7Jul 3, 2026 13:074,54511,773,5604,000,00002,117,632stderr
8Jul 3, 2026 13:074,84512,160,5044,264,00002,117,632stderr
9Jul 3, 2026 13:074,85312,003,1624,271,00002,117,632stderr