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 listMar 28, 2026 05:30Dominique GarmierDominique GarmierError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 13:42M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 14:00011,664,0143,073,00002,117,632expected "6442459076 ", got "11794191689 "
2May 17, 2026 14:00013,042,8883,084,00002,117,632expected "6442459076 ", got "11794191689 "
3May 17, 2026 14:00014,327,7883,037,00002,117,632expected "6442459076 ", got "11794191689 "
4Mar 28, 2026 05:3010,71924,656,4658,385,0001,048,0002,478,080
5Mar 28, 2026 05:2310,74530,958,0738,406,0001,050,0002,269,184
6Mar 28, 2026 05:2310,74729,855,4488,407,0001,050,0002,269,184
7Mar 28, 2026 05:2310,76129,410,9499,470,00002,441,216
8Mar 28, 2026 05:2310,76327,383,2738,419,0001,052,0002,445,312
9Mar 28, 2026 05:2310,77228,487,7028,426,0001,053,0002,269,184
10Mar 28, 2026 05:2310,78128,628,5939,487,00002,441,216
11Mar 28, 2026 05:2310,84228,348,7578,481,0001,060,0002,269,184
12Mar 28, 2026 05:3010,85230,656,4488,489,0001,061,0002,265,088
13Mar 28, 2026 05:2310,91425,960,0819,604,00002,289,664
14Mar 28, 2026 05:3010,91625,078,5769,606,00002,523,136
15Mar 28, 2026 05:2310,94525,494,0628,562,0001,070,0002,359,296