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 15:15Josu San MartinJosu San MartinScore: 5,947Success
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 15:185,91012,749,6385,201,00002,113,536
2Jun 22, 2026 15:185,93912,750,2805,227,00002,113,536
3Jun 22, 2026 15:185,94512,852,8425,232,00002,113,536
4Jun 22, 2026 15:185,94712,835,2205,234,00002,113,536
5Jun 22, 2026 15:185,94712,813,9125,234,00002,113,536
6Jun 22, 2026 15:185,95112,751,7895,237,00002,113,536
7Jun 22, 2026 15:186,02112,758,5255,299,00002,113,536
8Jun 22, 2026 15:186,02312,737,7945,301,00002,113,536
9Jun 22, 2026 15:186,03212,843,4985,309,00002,113,536