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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:45M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:45011,332,3412,431,00002,117,632expected "6442459076 ", got "5176077817 "
2May 17, 2026 08:45013,159,2392,456,00002,117,632expected "6442459076 ", got "5176077817 "
3May 17, 2026 08:45011,173,9532,512,00002,117,632expected "6442459076 ", got "5176077817 "
4Apr 28, 2026 12:3110,35425,703,4357,087,0002,025,0002,322,432
5Apr 28, 2026 12:3110,47227,217,5148,192,0001,024,0002,383,872
6Apr 28, 2026 12:3110,51030,530,0158,222,0001,027,0002,326,528
7Apr 28, 2026 12:3110,52028,241,0038,230,0001,028,0002,383,872
8Apr 28, 2026 12:3110,53125,028,0948,239,0001,029,0002,326,528
9Apr 28, 2026 12:3110,58128,621,2548,278,0001,034,0002,387,968
10Apr 28, 2026 12:3110,59227,237,7708,286,0001,035,0002,318,336
11Apr 28, 2026 12:3110,59728,589,3088,290,0001,036,0002,379,776
12Apr 28, 2026 12:3110,62930,704,2578,315,0001,039,0002,383,872