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 23:27Victor MerckléVictor MerckléScore: 4,542Success
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 23:304,42011,689,7813,890,00002,117,632stderr
2Jul 3, 2026 23:304,42511,792,1753,894,00002,117,632stderr
3Jul 3, 2026 23:304,46011,708,8953,925,00002,117,632stderr
4Jul 3, 2026 23:304,53611,891,1563,992,00002,117,632stderr
5Jul 3, 2026 23:304,54211,785,1543,997,00002,117,632stderr
6Jul 3, 2026 23:304,54311,763,3913,998,00002,117,632stderr
7Jul 3, 2026 23:304,56211,769,5964,015,00002,117,632stderr
8Jul 3, 2026 23:304,56211,762,6244,015,00002,117,632stderr
9Jul 3, 2026 23:304,61911,849,1734,065,00002,117,632stderr