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 20, 2026 02:10zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:20M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:2009,306,4931,029,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 05:2009,521,2801,000,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 05:20011,151,8051,098,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 20, 2026 02:093,13615,082,8492,760,00002,424,832
5Feb 20, 2026 02:093,17425,458,3042,793,00002,428,928
6Feb 20, 2026 02:093,17419,583,5622,793,00002,531,328
7Feb 20, 2026 02:103,31718,076,0172,919,00002,428,928
8Feb 20, 2026 02:093,31816,318,7071,947,000973,0002,416,640
9Feb 20, 2026 02:103,33818,852,9731,958,000979,0002,424,832
10Feb 20, 2026 02:103,33817,285,6911,958,000979,0002,433,024
11Feb 20, 2026 02:103,34317,381,3972,942,00002,424,832
12Feb 20, 2026 02:093,45019,287,2942,024,0001,012,0002,420,736
13Feb 20, 2026 02:093,61817,405,4392,123,0001,061,0002,424,832
14Feb 20, 2026 02:103,78121,230,0783,327,00002,424,832
15Feb 20, 2026 02:103,88216,488,8963,416,00002,424,832