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 7, 2026 01:30Victor MerckléVictor MerckléScore: 7,657Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2026 01:337,53914,049,3626,635,00002,113,536
2Jun 7, 2026 01:337,61314,129,5846,700,00002,113,536
3Jun 7, 2026 01:337,63214,273,2126,717,00002,113,536
4Jun 7, 2026 01:337,65014,368,5806,732,00002,113,536
5Jun 7, 2026 01:337,65714,151,2666,739,00002,113,536
6Jun 7, 2026 01:337,66015,789,9976,741,00002,113,536
7Jun 7, 2026 01:337,68014,383,3366,759,00002,113,536
8Jun 7, 2026 01:337,73122,295,7876,804,00002,113,536
9Jun 7, 2026 01:337,79421,698,2476,859,00002,113,536