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 11, 2026 09:39Aleksei ShahoikaAleksei ShahoikaScore: 23,676Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 11, 2026 09:4223,58131,018,80520,752,00002,113,536
2May 11, 2026 09:4223,60931,150,80820,776,00002,113,536
3May 11, 2026 09:4223,63829,663,57420,802,00002,113,536
4May 11, 2026 09:4223,66129,383,21920,822,00002,113,536
5May 11, 2026 09:4223,67630,260,03420,835,00002,113,536
6May 11, 2026 09:4223,69829,957,18119,836,0001,019,0002,113,536
7May 11, 2026 09:4223,70631,935,66720,862,00002,113,536
8May 11, 2026 09:4223,71231,083,19019,863,0001,004,0002,113,536
9May 11, 2026 09:4223,77529,814,86920,922,00002,113,536