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 14:14Josu San MartinJosu San MartinScore: 6,279Success
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 14:176,09512,968,3515,364,00002,113,536
2Jun 22, 2026 14:176,12812,905,3065,393,00002,113,536
3Jun 22, 2026 14:176,19413,177,3345,451,00002,113,536
4Jun 22, 2026 14:176,26413,350,2805,513,00002,113,536
5Jun 22, 2026 14:176,27913,357,5745,526,00002,113,536
6Jun 22, 2026 14:176,35115,767,0805,589,00002,113,536
7Jun 22, 2026 14:176,39213,101,4645,625,00002,113,536
8Jun 22, 2026 14:176,39513,120,4715,628,00002,113,536
9Jun 22, 2026 14:176,54013,617,3885,756,00002,113,536