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 23:47Josu San MartinJosu San MartinScore: 5,265Success
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 23:505,22812,104,3964,601,00002,113,536
2Jun 22, 2026 23:505,23912,636,4974,611,00002,113,536
3Jun 22, 2026 23:505,24512,164,8534,616,00002,113,536
4Jun 22, 2026 23:505,24512,123,1734,616,00002,113,536
5Jun 22, 2026 23:505,26512,181,1124,634,00002,113,536
6Jun 22, 2026 23:505,26512,160,3904,634,00002,113,536
7Jun 22, 2026 23:505,28112,181,2324,648,00002,113,536
8Jun 22, 2026 23:505,36312,138,6274,720,00002,113,536
9Jun 22, 2026 23:505,39412,402,5004,747,00002,113,536