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 5, 2026 22:17vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:17M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:17010,894,1551,195,00002,117,632expected "6442459076 ", got " "stderr
2May 17, 2026 07:17010,292,0941,204,00002,117,632expected "6442459076 ", got " "stderr
3May 17, 2026 07:1708,514,8561,198,00002,117,632expected "6442459076 ", got " "stderr
4Feb 5, 2026 22:183,45518,293,8981,013,0002,027,0002,281,472
5Feb 5, 2026 22:183,46117,930,5521,015,0002,031,0002,498,560
6Feb 5, 2026 22:183,46522,902,3561,016,0002,033,0002,502,656
7Feb 5, 2026 22:173,49220,307,0051,024,0002,049,0002,498,560
8Feb 5, 2026 22:173,49817,939,3041,026,0002,052,0002,498,560
9Feb 5, 2026 22:173,50219,185,0301,027,0002,055,0002,502,656
10Feb 5, 2026 22:173,50920,032,7291,029,0002,059,0002,502,656
11Feb 5, 2026 22:173,51317,737,3491,030,0002,061,0002,494,464
12Feb 5, 2026 22:173,55215,309,0331,042,0002,084,0002,498,560