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 17:13Victor MerckléVictor MerckléScore: 4,345Success
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 17:154,28911,793,9223,775,00002,117,632stderr
2Jul 7, 2026 17:154,29211,845,3903,777,00002,117,632stderr
3Jul 7, 2026 17:154,30011,625,3113,784,00002,117,632stderr
4Jul 7, 2026 17:154,32511,823,6813,806,00002,117,632stderr
5Jul 7, 2026 17:154,34511,825,8763,824,00002,117,632stderr
6Jul 7, 2026 17:154,35011,743,0063,828,00002,117,632stderr
7Jul 7, 2026 17:154,37011,636,1003,846,00002,117,632stderr
8Jul 7, 2026 17:154,37811,936,3143,853,00002,117,632stderr
9Jul 7, 2026 17:154,39211,759,3843,865,00002,117,632stderr