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 listApr 28, 2026 12:09Dominique GarmierDominique GarmierError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:41M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:42011,929,9302,441,00002,117,632expected "6442459076 ", got "14623443812 "
2May 17, 2026 08:42014,374,4632,455,00002,117,632expected "6442459076 ", got "14623443812 "
3May 17, 2026 08:42010,992,5802,465,00002,117,632expected "6442459076 ", got "14623443812 "
4Apr 28, 2026 12:1010,30026,260,1176,043,0003,021,0002,375,680
5Apr 28, 2026 12:1010,32629,024,0177,068,0002,019,0002,379,776
6Apr 28, 2026 12:1010,40128,825,0818,136,0001,017,0002,379,776
7Apr 28, 2026 12:1010,40326,682,1728,138,0001,017,0002,367,488
8Apr 28, 2026 12:1010,48927,584,5758,206,0001,025,0002,371,584
9Apr 28, 2026 12:1010,53430,545,9688,240,0001,030,0002,363,392
10Apr 28, 2026 12:1010,58022,818,0038,277,0001,034,0002,375,680
11Apr 28, 2026 12:1010,60023,814,4388,292,0001,036,0002,363,392
12Apr 28, 2026 12:1010,66128,469,1938,340,0001,042,0002,367,488