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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:49M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:5109,538,0781,001,00002,113,536expected "6442459076 ", got "2305422782 "
2May 17, 2026 06:5108,193,469999,00002,113,536expected "6442459076 ", got "2305422782 "
3May 17, 2026 06:5109,302,1221,004,00002,113,536expected "6442459076 ", got "2305422782 "
4Feb 9, 2026 01:283,32819,047,2121,953,000976,0002,404,352
5Feb 9, 2026 02:233,33220,701,0061,955,000977,0002,408,448
6Feb 9, 2026 01:283,33625,832,2392,936,00002,404,352
7Feb 9, 2026 01:273,40019,153,9511,995,000997,0002,277,376
8Feb 9, 2026 01:283,40224,483,4921,996,000998,0002,408,448
9Feb 9, 2026 02:003,41023,857,0862,001,0001,000,0002,408,448
10Feb 9, 2026 02:233,43118,401,9792,013,0001,006,0002,531,328
11Feb 9, 2026 02:003,43618,219,2172,016,0001,008,0002,535,424
12Feb 9, 2026 02:003,44018,694,7782,018,0001,009,0002,400,256
13Feb 9, 2026 01:193,44021,990,8242,018,0001,009,0002,535,424
14Feb 9, 2026 01:133,45023,942,6212,024,0001,012,0002,277,376
15Feb 9, 2026 02:233,45122,008,5931,012,0002,025,0002,412,544
16Feb 9, 2026 02:233,45317,268,8712,026,0001,013,0002,277,376
17Feb 9, 2026 01:133,45324,144,1202,026,0001,013,0002,277,376
18Feb 9, 2026 01:133,47018,954,7712,036,0001,018,0002,412,544
19Feb 9, 2026 01:193,47419,270,6691,019,0002,038,0002,486,272
20Feb 9, 2026 01:193,48921,232,0752,047,0001,023,0002,400,256
21Feb 9, 2026 01:273,61518,507,4982,121,0001,060,0002,535,424
22Feb 9, 2026 02:233,76920,225,4163,317,00002,400,256
23Feb 9, 2026 02:233,98921,557,4813,510,00002,510,848
24Feb 9, 2026 01:274,21718,811,5793,711,00002,400,256