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 07:24Victor MerckléVictor MerckléScore: 7,302Success
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 07:277,22313,831,4146,357,00002,113,536
2Jun 11, 2026 07:277,23213,770,6736,365,00002,113,536
3Jun 11, 2026 07:277,26513,584,5726,394,00002,113,536
4Jun 11, 2026 07:277,27314,093,3346,401,00002,113,536
5Jun 11, 2026 07:277,30213,647,0476,426,00002,113,536
6Jun 11, 2026 07:277,30913,890,5576,432,00002,113,536
7Jun 11, 2026 07:277,32013,835,2626,442,00002,113,536
8Jun 11, 2026 07:277,32313,718,6396,445,00002,113,536
9Jun 11, 2026 07:277,33514,200,0756,455,00002,113,536