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 22, 2026 22:45Josu San MartinJosu San MartinScore: 5,401Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 22, 2026 22:485,28612,109,9454,652,00002,113,536
2Jun 22, 2026 22:485,29212,134,2814,657,00002,113,536
3Jun 22, 2026 22:485,30212,160,9404,666,00002,113,536
4Jun 22, 2026 22:485,30312,153,1954,667,00002,113,536
5Jun 22, 2026 22:485,40112,514,9324,753,00002,113,536
6Jun 22, 2026 22:485,41412,138,3564,765,00002,113,536
7Jun 22, 2026 22:485,42512,197,2184,774,00002,113,536
8Jun 22, 2026 22:485,43912,151,3874,787,00002,113,536
9Jun 22, 2026 22:485,86812,959,2275,164,00002,113,536