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 19, 2026 19:29Victor MerckléVictor MerckléScore: 6,997Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 19, 2026 19:316,86913,546,2256,045,00002,113,536
2Jun 19, 2026 19:316,87213,525,1786,048,00002,113,536
3Jun 19, 2026 19:316,97513,637,7156,138,00002,113,536
4Jun 19, 2026 19:316,97613,874,5126,139,00002,113,536
5Jun 19, 2026 19:316,99713,605,5826,158,00002,113,536
6Jun 19, 2026 19:317,00415,506,6596,164,00002,113,536
7Jun 19, 2026 19:317,00413,987,0646,164,00002,113,536
8Jun 19, 2026 19:317,06913,489,7576,221,00002,113,536
9Jun 19, 2026 19:317,10214,040,3986,250,00002,113,536