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:17Dominique GarmierDominique GarmierError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:37M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:37012,133,3892,305,00002,117,632expected "6442459076 ", got "7499225018 "
2May 17, 2026 08:37013,941,0882,498,00002,117,632expected "6442459076 ", got "7499225018 "
3May 17, 2026 08:37012,475,7132,509,00002,117,632expected "6442459076 ", got "7499225018 "
4Apr 28, 2026 12:1810,20323,079,4266,984,0001,995,0002,371,584
5Apr 28, 2026 12:1810,28930,075,2537,043,0002,012,0002,469,888
6Apr 28, 2026 12:1810,35527,378,9027,088,0002,025,0002,367,488
7Apr 28, 2026 12:1810,37326,313,3046,086,0003,043,0002,359,296
8Apr 28, 2026 12:1810,40629,198,1627,123,0002,035,0002,375,680
9Apr 28, 2026 12:1810,43129,976,3839,180,00002,383,872
10Apr 28, 2026 12:1810,44422,707,2148,170,0001,021,0002,375,680
11Apr 28, 2026 12:1810,46027,344,4987,160,0002,045,0002,367,488
12Apr 28, 2026 12:1810,47824,425,0917,172,0002,049,0002,363,392