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 21, 2026 12:22Victor MerckléVictor MerckléScore: 6,864Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 12:256,81313,791,7845,996,00002,113,536
2Jun 21, 2026 12:256,81813,413,6066,000,00002,113,536
3Jun 21, 2026 12:256,82613,413,9336,007,00002,113,536
4Jun 21, 2026 12:256,85413,909,7476,032,00002,113,536
5Jun 21, 2026 12:256,86413,505,7576,041,00002,113,536
6Jun 21, 2026 12:256,88613,458,9206,060,00002,113,536
7Jun 21, 2026 12:256,93913,732,7756,107,00002,113,536
8Jun 21, 2026 12:256,94013,549,3416,108,00002,113,536
9Jun 21, 2026 12:256,94513,859,3766,112,00002,113,536