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 21:02Josu San MartinJosu San MartinScore: 5,497Success
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 21:055,38912,240,4804,743,00002,113,536
2Jun 22, 2026 21:055,39412,291,1554,747,00002,113,536
3Jun 22, 2026 21:055,40612,282,0604,758,00002,113,536
4Jun 22, 2026 21:055,43212,116,4594,781,00002,113,536
5Jun 22, 2026 21:055,49713,312,9864,838,00002,113,536
6Jun 22, 2026 21:055,50612,346,7444,846,00002,113,536
7Jun 22, 2026 21:055,51312,315,5674,852,00002,113,536
8Jun 22, 2026 21:055,52016,890,0934,858,00002,113,536
9Jun 22, 2026 21:055,52112,479,2074,859,00002,113,536