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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:40M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:40011,272,0822,440,00002,117,632expected "6442459076 ", got "24766664808 "
2May 17, 2026 08:40011,059,4812,402,00002,117,632expected "6442459076 ", got "24766664808 "
3May 17, 2026 08:40013,320,7762,376,00002,117,632expected "6442459076 ", got "24766664808 "
4Apr 28, 2026 12:2110,33424,587,4426,063,0003,031,0002,371,584
5Apr 28, 2026 12:2110,34727,598,9937,083,0002,023,0002,326,528
6Apr 28, 2026 12:2110,38629,032,5957,109,0002,031,0002,367,488
7Apr 28, 2026 12:2110,45726,340,3727,158,0002,045,0002,424,832
8Apr 28, 2026 12:2110,48026,056,7378,199,0001,024,0002,371,584
9Apr 28, 2026 12:2110,48523,620,0477,177,0002,050,0002,367,488
10Apr 28, 2026 12:2110,52031,763,0528,230,0001,028,0002,367,488
11Apr 28, 2026 12:2110,56030,123,6438,261,0001,032,0002,437,120
12Apr 28, 2026 12:2110,57828,641,5718,275,0001,034,0002,367,488