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 10:54Josu San MartinJosu San MartinScore: 7,057Success
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 10:576,94713,635,4466,114,00002,113,536
2Jun 22, 2026 10:576,95213,581,8376,118,00002,113,536
3Jun 22, 2026 10:576,96513,682,4536,130,00002,113,536
4Jun 22, 2026 10:577,03813,667,2896,194,00002,113,536
5Jun 22, 2026 10:577,05713,939,0836,211,00002,113,536
6Jun 22, 2026 10:577,06313,667,3616,216,00002,113,536
7Jun 22, 2026 10:577,06513,768,3556,218,00002,113,536
8Jun 22, 2026 10:577,07013,855,3136,222,00002,113,536
9Jun 22, 2026 10:577,07013,776,5646,222,00002,113,536