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 6, 2026 08:10Victor MerckléVictor MerckléScore: 8,676Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 6, 2026 08:128,55714,966,2687,531,00002,113,536
2Jun 6, 2026 08:128,57814,958,6597,549,00002,113,536
3Jun 6, 2026 08:128,61315,024,2317,580,00002,113,536
4Jun 6, 2026 08:128,67315,034,6007,633,00002,113,536
5Jun 6, 2026 08:128,67615,036,6427,635,00002,113,536
6Jun 6, 2026 08:128,68515,028,2817,643,00002,113,536
7Jun 6, 2026 08:128,68515,030,8757,643,00002,113,536
8Jun 6, 2026 08:128,69015,207,2347,648,00002,113,536
9Jun 6, 2026 08:128,81815,154,5907,760,00002,113,536