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 22:10Victor MerckléVictor MerckléScore: 7,125Success
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 22:126,95313,624,8996,119,00002,113,536
2Jun 19, 2026 22:127,08013,918,0936,231,00002,113,536
3Jun 19, 2026 22:127,10313,524,8996,251,00002,113,536
4Jun 19, 2026 22:127,11213,965,9226,259,00002,113,536
5Jun 19, 2026 22:127,12513,965,6866,270,00002,113,536
6Jun 19, 2026 22:127,13514,012,5836,279,00002,113,536
7Jun 19, 2026 22:127,16413,743,5686,305,00002,113,536
8Jun 19, 2026 22:127,18814,009,6196,326,00002,113,536
9Jun 19, 2026 22:127,25314,002,8846,383,00002,113,536