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 21, 2026 22:22Josu San MartinJosu San MartinScore: 60,862Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 22:2560,56862,540,99951,034,0002,266,0002,113,536
2Jun 21, 2026 22:2560,65962,749,91651,118,0002,262,0002,113,536
3Jun 21, 2026 22:2560,66062,542,22551,107,0002,274,0002,113,536
4Jun 21, 2026 22:2560,83462,743,35951,260,0002,274,0002,113,536
5Jun 21, 2026 22:2560,86262,658,91651,316,0002,243,0002,113,536
6Jun 21, 2026 22:2560,88263,099,64451,322,0002,255,0002,113,536
7Jun 21, 2026 22:2560,99562,932,32251,419,0002,257,0002,113,536
8Jun 21, 2026 22:2561,04362,899,05051,466,0002,252,0002,113,536
9Jun 21, 2026 22:2561,07362,909,79451,472,0002,273,0002,113,536