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:23Josu San MartinJosu San MartinScore: 5,918Success
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:255,77512,586,2485,082,00002,113,536
2Jun 22, 2026 15:255,79812,626,0665,103,00002,113,536
3Jun 22, 2026 15:255,91012,702,1665,201,00002,113,536
4Jun 22, 2026 15:255,91412,940,7685,205,00002,113,536
5Jun 22, 2026 15:255,91812,669,5655,208,00002,113,536
6Jun 22, 2026 15:255,92112,686,9235,211,00002,113,536
7Jun 22, 2026 15:255,95212,703,5265,238,00002,113,536
8Jun 22, 2026 15:255,95714,600,9955,243,00002,113,536
9Jun 22, 2026 15:256,10113,018,4565,369,00002,113,536