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 29, 2026 15:16Victor MerckléVictor MerckléScore: 4,734Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 29, 2026 15:194,60711,773,8344,055,00002,113,536
2Jun 29, 2026 15:194,61211,815,3024,059,00002,113,536
3Jun 29, 2026 15:194,61311,800,9484,060,00002,113,536
4Jun 29, 2026 15:194,61511,880,5134,062,00002,113,536
5Jun 29, 2026 15:194,73411,861,0754,166,00002,113,536
6Jun 29, 2026 15:194,74512,049,4124,176,00002,113,536
7Jun 29, 2026 15:194,74512,171,7434,176,00002,113,536
8Jun 29, 2026 15:194,75211,942,7134,182,00002,113,536
9Jun 29, 2026 15:194,75611,825,1204,186,00002,113,536