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 16:25Josu San MartinJosu San MartinScore: 5,901Success
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 16:285,81212,609,2085,115,00002,113,536
2Jun 22, 2026 16:285,85112,707,7415,149,00002,113,536
3Jun 22, 2026 16:285,88512,709,5875,179,00002,113,536
4Jun 22, 2026 16:285,89712,999,6225,190,00002,113,536
5Jun 22, 2026 16:285,90112,657,7495,193,00002,113,536
6Jun 22, 2026 16:285,92112,972,6365,211,00002,113,536
7Jun 22, 2026 16:285,93912,765,8055,227,00002,113,536
8Jun 22, 2026 16:286,07712,811,1485,348,00002,113,536
9Jun 22, 2026 16:286,24213,048,4405,493,00002,113,536