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 20, 2026 15:12Dominique GarmierDominique GarmierError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 12:50M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 12:55013,820,0132,498,00002,117,632expected "6442459076 ", got "11794192309 "
2May 17, 2026 12:55011,154,1312,524,00002,117,632expected "6442459076 ", got "11794192309 "
3May 17, 2026 12:55011,012,9352,313,00002,117,632expected "6442459076 ", got "11794192309 "
4Apr 20, 2026 15:1410,44322,844,1897,148,0002,042,0002,355,200
5Apr 20, 2026 15:1410,45224,578,0157,154,0002,044,0002,367,488
6Apr 20, 2026 15:1410,46526,972,0437,164,0002,046,0002,355,200
7Apr 20, 2026 15:1410,51123,968,7756,167,0003,083,0002,273,280
8Apr 20, 2026 15:1410,53426,075,1717,210,0002,060,0002,355,200
9Apr 20, 2026 15:1410,58527,962,7108,280,0001,035,0002,363,392
10Apr 20, 2026 15:1410,62127,964,5378,309,0001,038,0002,359,296
11Apr 20, 2026 15:1411,07617,340,8007,581,0002,166,0002,269,184
12Apr 20, 2026 15:1411,18430,424,0837,874,0001,968,0002,273,280