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:55zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:14M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:1408,405,9201,100,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 05:14010,273,5871,131,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 05:1408,604,1041,224,00002,113,536expected "6442459076 ", got "2305422578 "
4Feb 22, 2026 03:553,10318,033,5412,731,00002,535,424
5Feb 22, 2026 03:543,10925,943,7162,736,00002,416,640
6Feb 22, 2026 03:543,12417,613,2262,749,00002,424,832
7Feb 22, 2026 03:553,12516,390,0222,750,00002,420,736
8Feb 22, 2026 03:543,13120,041,3732,755,00002,420,736
9Feb 22, 2026 03:543,13817,991,8522,761,00002,424,832
10Feb 22, 2026 03:553,16922,248,5182,789,00002,412,544
11Feb 22, 2026 03:553,30821,792,1821,941,000970,0002,420,736
12Feb 22, 2026 03:553,32819,291,1231,953,000976,0002,514,944
13Feb 22, 2026 03:553,57719,980,3882,099,0001,049,0002,428,928
14Feb 22, 2026 03:543,65819,434,2472,146,0001,073,0002,424,832
15Feb 22, 2026 03:543,68520,029,8152,162,0001,081,0002,416,640