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:47Josu San MartinJosu San MartinScore: 5,672Success
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:525,50912,362,1494,848,00002,113,536
2Jun 22, 2026 19:525,55412,363,4064,888,00002,113,536
3Jun 22, 2026 19:525,63912,466,0194,963,00002,113,536
4Jun 22, 2026 19:525,65512,504,9654,977,00002,113,536
5Jun 22, 2026 19:525,67212,453,0704,992,00002,113,536
6Jun 22, 2026 19:525,72812,595,3995,041,00002,113,536
7Jun 22, 2026 19:525,97913,106,9785,262,00002,113,536
8Jun 22, 2026 19:526,02113,038,5295,299,00002,113,536
9Jun 22, 2026 19:526,10613,103,4765,374,00002,113,536