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 18:37Josu San MartinJosu San MartinScore: 5,552Success
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 18:405,51912,068,7854,857,00002,113,536
2Jun 22, 2026 18:405,54312,311,8554,878,00002,113,536
3Jun 22, 2026 18:405,54512,187,2404,880,00002,113,536
4Jun 22, 2026 18:405,54612,150,2524,881,00002,113,536
5Jun 22, 2026 18:405,55212,500,7834,886,00002,113,536
6Jun 22, 2026 18:405,56912,362,2404,901,00002,113,536
7Jun 22, 2026 18:405,67112,566,2964,991,00002,113,536
8Jun 22, 2026 18:406,02312,618,5965,301,00002,113,536
9Jun 22, 2026 18:406,10412,723,9875,372,00002,113,536