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 7, 2026 05:48olliecrowolliecrowScore: 12,017Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2026 05:5111,88625,515,87410,460,00002,551,808
2May 7, 2026 05:5111,89524,336,12810,468,00002,551,808
3May 7, 2026 05:5111,91523,728,25610,486,00002,543,616
4May 7, 2026 05:5112,00228,253,51310,562,00002,543,616
5May 7, 2026 05:5112,01727,803,69410,575,00002,551,808
6May 7, 2026 05:5112,02326,204,21310,581,00002,555,904
7May 7, 2026 05:5112,03927,720,21110,595,00002,547,712
8May 7, 2026 05:5134,79344,412,50830,618,00002,547,712
9May 7, 2026 05:5134,82050,683,48830,642,00002,555,904