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 listMay 10, 2026 22:14Aleksei ShahoikaAleksei ShahoikaScore: 49,525Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 10, 2026 22:1749,26052,384,81943,349,00002,113,536
2May 10, 2026 22:1749,29852,463,58043,383,00002,113,536
3May 10, 2026 22:1749,32554,070,82543,406,00002,113,536
4May 10, 2026 22:1749,50552,180,98043,565,00002,113,536
5May 10, 2026 22:1749,52552,084,09743,582,00002,113,536
6May 10, 2026 22:1749,52953,983,42943,586,00002,113,536
7May 10, 2026 22:1749,60353,717,47143,651,00002,113,536
8May 10, 2026 22:1750,27155,041,72244,239,00002,113,536
9May 10, 2026 22:1750,83254,716,15143,705,0001,028,0002,113,536