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 listFeb 7, 2026 05:17vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:26M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:2609,676,7601,190,00002,113,536expected "6442459076 ", got "1 "
2May 17, 2026 05:2608,450,9261,184,00002,113,536expected "6442459076 ", got "1 "
3May 17, 2026 05:26010,263,3441,177,00002,113,536expected "6442459076 ", got "1 "
4Feb 7, 2026 05:183,35116,245,399983,0001,966,0002,494,464
5Feb 7, 2026 05:183,35518,321,0331,476,0001,476,0002,498,560
6Feb 7, 2026 05:183,38320,632,026992,0001,985,0002,494,464
7Feb 7, 2026 05:183,38319,474,287992,0001,985,0002,498,560
8Feb 7, 2026 05:183,38625,540,149993,0001,987,0002,498,560
9Feb 7, 2026 05:183,41322,847,1311,001,0002,002,0002,494,464
10Feb 7, 2026 05:183,43818,996,4411,008,0002,017,0002,502,656
11Feb 7, 2026 05:183,44822,833,1501,011,0002,023,0002,498,560
12Feb 7, 2026 05:173,45319,797,5621,013,0002,026,0002,502,656
13Feb 7, 2026 05:173,48119,470,5311,021,0002,042,0002,502,656
14Feb 7, 2026 05:173,49420,171,3221,025,0002,050,0002,498,560
15Feb 7, 2026 05:183,50617,956,4981,028,0002,057,0002,486,272