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 11, 2026 04:37zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:04M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:04010,439,6351,070,00002,113,536expected "6442459076 ", got "2305422782 "
2May 17, 2026 07:04010,460,6761,019,00002,113,536expected "6442459076 ", got "2305422782 "
3May 17, 2026 07:0409,465,2521,036,00002,113,536expected "6442459076 ", got "2305422782 "
4Feb 12, 2026 03:193,37219,212,0071,978,000989,0002,408,448
5Feb 11, 2026 04:373,43622,651,7522,016,0001,008,0002,400,256
6Feb 12, 2026 03:193,44821,362,8592,023,0001,011,0002,400,256
7Feb 12, 2026 03:193,45519,811,4012,027,0001,013,0002,404,352
8Feb 12, 2026 03:183,45716,512,8522,028,0001,014,0002,408,448
9Feb 12, 2026 03:193,46016,679,4602,030,0001,015,0002,396,160
10Feb 12, 2026 03:193,46817,753,1502,035,0001,017,0002,277,376
11Feb 12, 2026 03:193,48121,964,5922,042,0001,021,0002,412,544
12Feb 12, 2026 03:183,48219,091,5282,043,0001,021,0002,281,472
13Feb 12, 2026 03:183,48416,776,9482,044,0001,022,0002,535,424
14Feb 11, 2026 04:373,49218,616,8451,024,0002,049,0002,404,352
15Feb 11, 2026 04:373,53018,929,9521,035,0002,071,0002,400,256