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 listAug 14, 2026 20:19Tomislav TunkovicTomislav TunkovicScore: 4,281Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 14, 2026 20:304,17311,759,0543,673,00002,121,728stderr
2Aug 14, 2026 20:304,26311,911,8983,752,00002,121,728stderr
3Aug 14, 2026 20:304,26811,763,8843,756,00002,121,728stderr
4Aug 14, 2026 20:304,27111,751,1773,759,00002,121,728stderr
5Aug 14, 2026 20:304,28111,968,1693,768,00002,121,728stderr
6Aug 14, 2026 20:304,28518,296,7773,771,00002,121,728stderr
7Aug 14, 2026 20:304,29011,839,5093,776,00002,121,728stderr
8Aug 14, 2026 20:304,29212,674,3993,777,00002,121,728stderr
9Aug 14, 2026 20:304,31911,859,5833,801,00002,121,728stderr