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 23, 2026 05:09Josu San MartinJosu San MartinScore: 5,173Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 05:135,07311,943,1064,465,00002,113,536
2Jun 23, 2026 05:135,08112,022,7534,472,00002,113,536
3Jun 23, 2026 05:135,16311,998,1784,544,00002,113,536
4Jun 23, 2026 05:135,17012,015,4514,550,00002,113,536
5Jun 23, 2026 05:135,17311,983,9384,553,00002,113,536
6Jun 23, 2026 05:135,18412,012,3264,562,00002,113,536
7Jun 23, 2026 05:135,18612,009,0414,564,00002,113,536
8Jun 23, 2026 05:135,22712,003,8524,600,00002,113,536
9Jun 23, 2026 05:135,55312,369,5544,887,00002,113,536