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 11, 2026 06:28Victor MerckléVictor MerckléScore: 7,252Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 11, 2026 06:317,15013,503,2366,292,00002,113,536
2Jun 11, 2026 06:317,17313,516,7626,313,00002,113,536
3Jun 11, 2026 06:317,18913,678,0976,327,00002,113,536
4Jun 11, 2026 06:317,19613,591,2996,333,00002,113,536
5Jun 11, 2026 06:317,25213,584,7946,382,00002,113,536
6Jun 11, 2026 06:317,25714,049,8306,387,00002,113,536
7Jun 11, 2026 06:317,26014,116,0216,389,00002,113,536
8Jun 11, 2026 06:317,26213,761,4786,391,00002,113,536
9Jun 11, 2026 06:317,48013,763,1116,583,00002,113,536