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 19:56Josu San MartinJosu San MartinScore: 5,575Success
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 19:595,46212,325,0504,807,00002,113,536
2Jun 22, 2026 19:595,47612,351,9714,819,00002,113,536
3Jun 22, 2026 19:595,47912,378,2784,822,00002,113,536
4Jun 22, 2026 19:595,56812,470,3764,900,00002,113,536
5Jun 22, 2026 19:595,57512,382,4984,906,00002,113,536
6Jun 22, 2026 19:595,57712,417,8504,908,00002,113,536
7Jun 22, 2026 19:595,58412,645,6464,914,00002,113,536
8Jun 22, 2026 19:595,72612,541,3445,039,00002,113,536
9Jun 22, 2026 19:595,79512,578,7795,100,00002,113,536