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 listFeb 14, 2026 21:18olliecrowolliecrowScore: 21,613Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 14, 2026 21:1821,49749,210,41518,917,00002,408,448
2Feb 14, 2026 21:1821,58837,444,24917,998,000999,0002,523,136
3Feb 14, 2026 21:1821,59441,520,42318,003,0001,000,0002,514,944
4Feb 14, 2026 21:1821,59845,904,04417,006,0002,000,0002,523,136
5Feb 14, 2026 21:1821,61345,142,35518,018,0001,001,0002,523,136
6Feb 14, 2026 21:1821,62036,604,51918,025,0001,001,0002,514,944
7Feb 14, 2026 21:1821,62646,601,28718,030,0001,001,0002,265,088
8Feb 14, 2026 21:1821,63940,864,73918,040,0001,002,0002,351,104
9Feb 14, 2026 21:1821,66740,199,08318,064,0001,003,0002,514,944