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 6, 2026 22:23Victor MerckléVictor MerckléScore: 3,630Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 6, 2026 22:263,61911,179,4623,185,00002,117,632stderr
2Jul 6, 2026 22:263,62011,072,7643,186,00002,125,824stderr
3Jul 6, 2026 22:263,62211,120,4423,188,00002,125,824stderr
4Jul 6, 2026 22:263,62811,071,7393,193,00002,117,632stderr
5Jul 6, 2026 22:263,63011,146,2673,195,00002,125,824stderr
6Jul 6, 2026 22:263,65211,096,5783,214,00002,117,632stderr
7Jul 6, 2026 22:263,73111,574,0773,284,00002,117,632stderr
8Jul 6, 2026 22:263,73611,555,6573,288,00002,117,632stderr
9Jul 6, 2026 22:263,75411,092,0513,304,00002,117,632stderr