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 11:32Josu San MartinJosu San MartinScore: 6,884Success
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 11:356,84813,511,6876,027,00002,113,536
2Jun 22, 2026 11:356,85513,616,3186,033,00002,113,536
3Jun 22, 2026 11:356,85513,516,2456,033,00002,113,536
4Jun 22, 2026 11:356,87013,599,1086,046,00002,113,536
5Jun 22, 2026 11:356,88413,959,3135,052,0001,006,0002,113,536
6Jun 22, 2026 11:356,92613,700,7486,095,00002,113,536
7Jun 22, 2026 11:356,93513,639,3216,103,00002,113,536
8Jun 22, 2026 11:356,97313,666,1356,137,00002,113,536
9Jun 22, 2026 11:357,09615,025,2106,245,00002,113,536