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 11, 2026 05:36Victor MerckléVictor MerckléScore: 11,447Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 11, 2026 05:3811,40017,644,24410,032,00002,113,536
2Jun 11, 2026 05:3811,40917,625,67110,040,00002,113,536
3Jun 11, 2026 05:3811,41517,732,72210,046,00002,113,536
4Jun 11, 2026 05:3811,41717,701,69010,047,00002,113,536
5Jun 11, 2026 05:3811,44717,693,31410,074,00002,113,536
6Jun 11, 2026 05:3811,44717,382,65110,074,00002,113,536
7Jun 11, 2026 05:3811,46117,690,71710,086,00002,113,536
8Jun 11, 2026 05:3811,46417,495,42210,089,00002,113,536
9Jun 11, 2026 05:3811,49317,485,62210,114,00002,113,536