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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:26M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:26011,713,7402,394,00002,117,632expected "6442459076 ", got "5176077817 "
2May 17, 2026 07:26012,777,5352,379,00002,117,632expected "6442459076 ", got "5176077817 "
3May 17, 2026 07:26011,086,7432,503,00002,117,632expected "6442459076 ", got "5176077817 "
4Apr 29, 2026 11:2610,19227,476,4496,976,0001,993,0002,367,488
5Apr 29, 2026 11:2610,22523,513,6146,999,0001,999,0002,367,488
6Apr 29, 2026 11:2610,22931,056,8607,002,0002,000,0002,375,680
7Apr 29, 2026 11:2610,26328,618,4357,025,0002,007,0002,318,336
8Apr 29, 2026 11:2610,27124,963,4467,031,0002,008,0002,367,488
9Apr 29, 2026 11:2610,27127,718,3776,026,0003,013,0002,363,392
10Apr 29, 2026 11:2610,34626,381,7467,082,0002,023,0002,363,392
11Apr 29, 2026 11:2610,35128,884,2397,085,0002,024,0002,375,680
12Apr 29, 2026 11:2610,37826,367,0177,104,0002,029,0002,367,488