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 04:38Victor MerckléVictor MerckléScore: 7,817Success
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 04:477,77314,161,9856,841,00002,113,536
2Jun 13, 2026 04:477,78414,247,5946,850,00002,113,536
3Jun 13, 2026 04:477,79714,244,8696,862,00002,113,536
4Jun 13, 2026 04:477,81014,242,6656,873,00002,113,536
5Jun 13, 2026 04:477,81714,176,6866,879,00002,113,536
6Jun 13, 2026 04:477,82714,250,3436,888,00002,113,536
7Jun 13, 2026 04:477,85614,219,6566,914,00002,113,536
8Jun 13, 2026 04:477,85914,275,5556,916,00002,113,536
9Jun 13, 2026 04:477,88914,320,4156,943,00002,113,536