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 6, 2026 04:27zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:09M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:0909,001,1041,053,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 07:0908,330,7581,119,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 07:0909,103,9811,126,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 6, 2026 04:283,33418,080,4201,467,0001,467,0002,293,760
5Feb 6, 2026 04:293,40920,661,0731,000,0002,000,0002,486,272
6Feb 6, 2026 04:283,45820,191,6322,029,0001,014,0002,379,776
7Feb 6, 2026 04:283,46518,203,2522,033,0001,016,0002,449,408
8Feb 6, 2026 04:273,48420,472,2942,044,0001,022,0002,531,328
9Feb 6, 2026 04:293,48822,995,3532,046,0001,023,0002,297,856
10Feb 6, 2026 04:273,50522,913,6922,056,0001,028,0002,289,664
11Feb 6, 2026 04:273,55618,922,8781,043,0002,086,0002,293,760
12Feb 6, 2026 04:294,44117,010,3362,931,000977,0002,293,760