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:23Victor MerckléVictor MerckléScore: 7,168Success
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:257,09213,690,2236,241,00002,113,536
2Jun 13, 2026 12:257,14213,551,1476,285,00002,113,536
3Jun 13, 2026 12:257,14713,695,1816,290,00002,113,536
4Jun 13, 2026 12:257,15513,987,6426,297,00002,113,536
5Jun 13, 2026 12:257,16813,951,2376,308,00002,113,536
6Jun 13, 2026 12:257,17814,022,5196,317,00002,113,536
7Jun 13, 2026 12:257,19713,709,7086,334,00002,113,536
8Jun 13, 2026 12:257,22613,763,7016,359,00002,113,536
9Jun 13, 2026 12:257,22813,552,5236,361,00002,113,536