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 11, 2026 06:16Victor MerckléVictor MerckléScore: 7,284Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 11, 2026 06:197,14813,728,9716,291,00002,113,536
2Jun 11, 2026 06:197,16313,738,1036,304,00002,113,536
3Jun 11, 2026 06:197,16714,055,7246,307,00002,113,536
4Jun 11, 2026 06:197,17913,518,7576,318,00002,113,536
5Jun 11, 2026 06:197,28414,016,1416,410,00002,113,536
6Jun 11, 2026 06:197,28714,085,0576,413,00002,113,536
7Jun 11, 2026 06:197,29313,641,5286,418,00002,113,536
8Jun 11, 2026 06:197,49714,291,1386,598,00002,113,536
9Jun 11, 2026 06:197,53014,166,9486,627,00002,113,536