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 18:10Josu San MartinJosu San MartinScore: 5,563Success
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 18:135,44312,293,9014,790,00002,113,536
2Jun 22, 2026 18:135,45212,319,6044,798,00002,113,536
3Jun 22, 2026 18:135,53912,321,1664,875,00002,113,536
4Jun 22, 2026 18:135,54512,378,4124,880,00002,113,536
5Jun 22, 2026 18:135,56312,362,1894,896,00002,113,536
6Jun 22, 2026 18:135,57012,618,3704,902,00002,113,536
7Jun 22, 2026 18:135,59312,369,5514,922,00002,113,536
8Jun 22, 2026 18:135,65112,467,0954,973,00002,113,536
9Jun 22, 2026 18:136,03712,904,3645,313,00002,113,536