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 12:12Josu San MartinJosu San MartinScore: 6,868Success
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 12:156,73113,465,1425,924,00002,113,536
2Jun 22, 2026 12:156,73113,477,8955,924,00002,113,536
3Jun 22, 2026 12:156,80613,492,0315,990,00002,113,536
4Jun 22, 2026 12:156,81913,558,5676,001,00002,113,536
5Jun 22, 2026 12:156,86813,690,8736,044,00002,113,536
6Jun 22, 2026 12:156,89013,818,0876,064,00002,113,536
7Jun 22, 2026 12:156,93513,649,8396,103,00002,113,536
8Jun 22, 2026 12:157,01113,996,0576,170,00002,113,536
9Jun 22, 2026 12:157,02613,676,1916,183,00002,113,536