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 29, 2026 04:51olliecrowolliecrowError
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,048,94501,913,0002,121,728expected "6442459076 ", got "2147491785 "
2May 17, 2026 08:45010,849,3191,809,00002,121,728expected "6442459076 ", got "2147491785 "
3May 17, 2026 08:45010,816,57201,990,0002,121,728expected "6442459076 ", got "2147491785 "
4Apr 29, 2026 04:5111,91532,981,1809,438,0001,048,0002,330,624
5Apr 29, 2026 04:5111,91733,041,4339,439,0001,048,0002,342,912
6Apr 29, 2026 04:5111,91829,637,7289,440,0001,048,0002,338,816
7Apr 29, 2026 04:5111,93825,792,4019,456,0001,050,0002,338,816
8Apr 29, 2026 04:5111,95423,644,5359,468,0001,052,0002,326,528
9Apr 29, 2026 04:5111,96830,060,9409,479,0001,053,0002,330,624
10Apr 29, 2026 04:5112,08028,206,9059,568,0001,063,0002,428,928
11Apr 29, 2026 04:5112,27233,030,5258,837,0001,963,0002,330,624
12Apr 29, 2026 04:5112,28526,788,1149,730,0001,081,0002,330,624