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 05:59Victor MerckléVictor MerckléScore: 8,098Success
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:028,05114,348,4967,085,00002,113,536
2Jun 11, 2026 06:028,06814,567,5487,100,00002,113,536
3Jun 11, 2026 06:028,07814,533,6567,109,00002,113,536
4Jun 11, 2026 06:028,08814,572,4537,118,00002,113,536
5Jun 11, 2026 06:028,09815,678,1297,127,00002,113,536
6Jun 11, 2026 06:028,17614,826,2847,195,00002,113,536
7Jun 11, 2026 06:028,20114,391,7877,217,00002,113,536
8Jun 11, 2026 06:028,21115,108,5317,226,00002,113,536
9Jun 11, 2026 06:028,25514,450,7117,265,00002,113,536