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 13:29Josu San MartinJosu San MartinScore: 6,597Success
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 13:326,37613,157,2475,611,00002,113,536
2Jun 22, 2026 13:326,44413,245,1405,671,00002,113,536
3Jun 22, 2026 13:326,50413,270,5655,724,00002,113,536
4Jun 22, 2026 13:326,59513,326,3135,804,00002,113,536
5Jun 22, 2026 13:326,59713,618,7985,806,00002,113,536
6Jun 22, 2026 13:326,61113,311,4885,818,00002,113,536
7Jun 22, 2026 13:326,82213,516,4574,925,0001,079,0002,113,536
8Jun 22, 2026 13:326,83913,904,1086,019,00002,113,536
9Jun 22, 2026 13:327,85014,573,2306,908,00002,113,536