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 21:43Aleksei ShahoikaAleksei ShahoikaScore: 20,078Success
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 21:4520,00027,749,25217,600,00002,113,536
2May 11, 2026 21:4520,01226,611,80417,611,00002,113,536
3May 11, 2026 21:4520,05627,254,64617,650,00002,113,536
4May 11, 2026 21:4520,06226,283,54417,655,00002,113,536
5May 11, 2026 21:4520,07828,995,94017,669,00002,113,536
6May 11, 2026 21:4520,08527,243,70617,675,00002,113,536
7May 11, 2026 21:4520,09728,152,62817,686,00002,113,536
8May 11, 2026 21:4520,09726,303,86517,686,00002,113,536
9May 11, 2026 21:4520,20326,908,99317,779,00002,113,536