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 03:29Victor MerckléVictor MerckléScore: 4,159Success
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 03:324,05911,360,0463,572,00002,117,632stderr
2Jul 6, 2026 03:324,06911,356,8723,581,00002,117,632stderr
3Jul 6, 2026 03:324,07011,432,2953,582,00002,117,632stderr
4Jul 6, 2026 03:324,14511,489,2973,648,00002,117,632stderr
5Jul 6, 2026 03:324,15911,477,8263,660,00002,117,632stderr
6Jul 6, 2026 03:324,18911,480,1983,687,00002,117,632stderr
7Jul 6, 2026 03:324,20311,481,0423,699,00002,117,632stderr
8Jul 6, 2026 03:324,20911,844,5543,704,00002,117,632stderr
9Jul 6, 2026 03:324,33211,556,1723,813,00002,117,632stderr