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 27, 2026 19:24Victor MerckléVictor MerckléScore: 5,087Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2026 19:275,04412,483,6774,439,00002,113,536
2Jun 27, 2026 19:275,07712,181,0744,468,00002,113,536
3Jun 27, 2026 19:275,07912,228,5044,470,00002,113,536
4Jun 27, 2026 19:275,08612,197,3774,476,00002,113,536
5Jun 27, 2026 19:275,08712,192,0304,477,00002,113,536
6Jun 27, 2026 19:275,20212,510,0204,578,00002,113,536
7Jun 27, 2026 19:275,20212,248,0434,578,00002,113,536
8Jun 27, 2026 19:275,29012,085,9344,656,00002,113,536
9Jun 27, 2026 19:275,33512,405,3054,695,00002,113,536