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 29, 2026 17:33Victor MerckléVictor MerckléScore: 4,759Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 29, 2026 17:364,64211,744,7844,085,00002,113,536
2Jun 29, 2026 17:364,74311,806,4424,174,00002,113,536
3Jun 29, 2026 17:364,74811,799,7944,179,00002,113,536
4Jun 29, 2026 17:364,75112,123,1214,181,00002,113,536
5Jun 29, 2026 17:364,75911,836,0944,188,00002,113,536
6Jun 29, 2026 17:364,76911,863,8074,197,00002,113,536
7Jun 29, 2026 17:364,77211,843,1114,200,00002,113,536
8Jun 29, 2026 17:364,84211,962,6864,261,00002,113,536
9Jun 29, 2026 17:364,98112,100,2694,384,00002,113,536