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 19:08Josu San MartinJosu San MartinScore: 5,528Success
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 19:115,40412,336,6664,756,00002,113,536
2Jun 22, 2026 19:115,43412,322,7404,782,00002,113,536
3Jun 22, 2026 19:115,43812,343,0454,786,00002,113,536
4Jun 22, 2026 19:115,52612,400,1604,863,00002,113,536
5Jun 22, 2026 19:115,52812,677,1444,865,00002,113,536
6Jun 22, 2026 19:115,53812,611,1174,874,00002,113,536
7Jun 22, 2026 19:115,54612,697,6194,881,00002,113,536
8Jun 22, 2026 19:115,77812,850,4625,085,00002,113,536
9Jun 22, 2026 19:115,89212,711,4425,185,00002,113,536