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:58Aleksei ShahoikaAleksei ShahoikaScore: 22,980Success
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 10:0122,94630,560,93920,193,00002,113,536
2May 11, 2026 10:0122,94828,773,69520,195,00002,113,536
3May 11, 2026 10:0122,95030,620,35820,196,00002,113,536
4May 11, 2026 10:0122,97829,276,61220,221,00002,113,536
5May 11, 2026 10:0122,98030,552,82820,223,00002,113,536
6May 11, 2026 10:0122,98529,113,04820,227,00002,113,536
7May 11, 2026 10:0123,00928,803,11520,248,00002,113,536
8May 11, 2026 10:0123,02630,890,88820,263,00002,113,536
9May 11, 2026 10:0123,05528,843,13719,250,0001,039,0002,113,536