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 18:01Victor MerckléVictor MerckléScore: 3,714Success
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 18:043,60311,036,7663,171,00002,117,632stderr
2Jul 7, 2026 18:043,62611,089,3613,191,00002,117,632stderr
3Jul 7, 2026 18:043,62611,097,2953,191,00002,117,632stderr
4Jul 7, 2026 18:043,63511,100,3963,199,00002,117,632stderr
5Jul 7, 2026 18:043,71411,065,8173,269,00002,117,632stderr
6Jul 7, 2026 18:043,71911,049,9293,273,00002,117,632stderr
7Jul 7, 2026 18:043,72511,518,0583,278,00002,117,632stderr
8Jul 7, 2026 18:043,72511,043,1613,278,00002,117,632stderr
9Jul 7, 2026 18:043,72611,053,4463,279,00002,117,632stderr