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 23, 2026 03:58Victor MerckléVictor MerckléScore: 6,137Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 04:006,04012,860,7505,316,00002,113,536
2Jun 23, 2026 04:006,10212,829,6715,370,00002,113,536
3Jun 23, 2026 04:006,13012,871,9025,395,00002,113,536
4Jun 23, 2026 04:006,13412,829,5705,398,00002,113,536
5Jun 23, 2026 04:006,13712,941,2145,401,00002,113,536
6Jun 23, 2026 04:006,14313,228,3305,406,00002,113,536
7Jun 23, 2026 04:006,14313,180,4245,406,00002,113,536
8Jun 23, 2026 04:006,15512,992,9505,417,00002,113,536
9Jun 23, 2026 04:006,36913,418,7085,605,00002,113,536