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 9, 2026 02:08zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:44M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:44011,207,9841,114,00002,113,536expected "6442459076 ", got "2305422782 "
2May 17, 2026 06:44010,460,1801,105,00002,113,536expected "6442459076 ", got "2305422782 "
3May 17, 2026 06:4408,194,096958,00002,113,536expected "6442459076 ", got "2305422782 "
4Feb 9, 2026 02:073,42619,410,2342,010,0001,005,0002,408,448
5Feb 9, 2026 02:073,43020,645,3002,012,0001,006,0002,412,544
6Feb 9, 2026 02:093,43117,056,1372,013,0001,006,0002,408,448
7Feb 9, 2026 02:093,44119,487,3102,019,0001,009,0002,412,544
8Feb 9, 2026 02:083,44818,761,5172,023,0001,011,0002,408,448
9Feb 9, 2026 02:094,10825,052,7603,615,00002,404,352
10Feb 9, 2026 02:084,16317,038,8063,663,00002,408,448
11Feb 9, 2026 02:084,26720,032,1223,755,00002,404,352
12Feb 9, 2026 02:074,31421,625,9253,796,00002,400,256