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 listJun 13, 2026 12:18Victor MerckléVictor MerckléScore: 7,060Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 13, 2026 12:206,96413,421,5396,129,00002,113,536
2Jun 13, 2026 12:206,97313,395,8916,137,00002,113,536
3Jun 13, 2026 12:207,02913,587,5616,186,00002,113,536
4Jun 13, 2026 12:207,04613,417,2256,201,00002,113,536
5Jun 13, 2026 12:207,06013,598,4776,213,00002,113,536
6Jun 13, 2026 12:207,06713,619,1896,219,00002,113,536
7Jun 13, 2026 12:207,06813,620,7506,220,00002,113,536
8Jun 13, 2026 12:207,07513,951,2776,226,00002,113,536
9Jun 13, 2026 12:207,12313,930,5086,269,00002,113,536