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 01:17olliecrowolliecrowScore: 11,576Success
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 01:1911,53422,589,40710,150,00002,547,712
2May 7, 2026 01:1911,53522,270,59010,151,00002,551,808
3May 7, 2026 01:1911,53825,487,96210,154,00002,547,712
4May 7, 2026 01:1911,54825,203,48110,163,00002,551,808
5May 7, 2026 01:1911,57623,956,68110,187,00002,547,712
6May 7, 2026 01:1911,57825,202,42610,189,00002,547,712
7May 7, 2026 01:1911,58727,639,39610,197,00002,547,712
8May 7, 2026 01:1911,59626,698,61610,205,00002,555,904
9May 7, 2026 01:1911,59823,669,15910,207,00002,551,808