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 22, 2026 03:55zielajzielajScore: 3,169Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 22, 2026 03:553,10318,033,5412,731,00002,535,424
2Feb 22, 2026 03:543,10925,943,7162,736,00002,416,640
3Feb 22, 2026 03:543,12417,613,2262,749,00002,424,832
4Feb 22, 2026 03:553,12516,390,0222,750,00002,420,736
5Feb 22, 2026 03:543,13120,041,3732,755,00002,420,736
6Feb 22, 2026 03:543,13817,991,8522,761,00002,424,832
7Feb 22, 2026 03:553,16922,248,5182,789,00002,412,544
8Feb 22, 2026 03:553,30821,792,1821,941,000970,0002,420,736
9Feb 22, 2026 03:553,32819,291,1231,953,000976,0002,514,944
10Feb 22, 2026 03:553,57719,980,3882,099,0001,049,0002,428,928
11Feb 22, 2026 03:543,65819,434,2472,146,0001,073,0002,424,832
12Feb 22, 2026 03:543,68520,029,8152,162,0001,081,0002,416,640