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 15, 2026 17:31Victor MerckléVictor MerckléScore: 7,196Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 15, 2026 17:337,08513,315,2746,235,00002,113,536
2Jun 15, 2026 17:337,16813,523,3016,308,00002,113,536
3Jun 15, 2026 17:337,18613,507,6286,324,00002,113,536
4Jun 15, 2026 17:337,18813,360,1806,326,00002,113,536
5Jun 15, 2026 17:337,19613,400,1746,333,00002,113,536
6Jun 15, 2026 17:337,19813,372,6756,335,00002,113,536
7Jun 15, 2026 17:337,28713,587,8826,413,00002,113,536
8Jun 15, 2026 17:337,36313,628,8086,480,00002,113,536
9Jun 15, 2026 17:337,49413,780,1046,595,00002,113,536