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 27, 2026 20:01Victor MerckléVictor MerckléScore: 5,176Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2026 20:045,06812,189,3414,460,00002,113,536
2Jun 27, 2026 20:045,07712,172,6234,468,00002,113,536
3Jun 27, 2026 20:045,16112,229,3584,542,00002,113,536
4Jun 27, 2026 20:045,16512,440,6304,546,00002,113,536
5Jun 27, 2026 20:045,17612,228,7404,555,00002,113,536
6Jun 27, 2026 20:045,17812,498,7824,557,00002,113,536
7Jun 27, 2026 20:045,18612,219,0804,564,00002,113,536
8Jun 27, 2026 20:045,19412,542,6324,571,00002,113,536
9Jun 27, 2026 20:045,19712,521,5164,574,00002,113,536