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 17:43olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:42M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:43015,267,3954,556,00002,117,632expected "6442459076 ", got "2147490262 "
2May 17, 2026 08:43015,251,6354,551,00002,117,632expected "6442459076 ", got "2147490262 "
3May 17, 2026 08:43013,055,7394,596,00002,117,632expected "6442459076 ", got "2147490262 "
4Apr 28, 2026 17:4411,74629,557,6649,304,0001,033,0002,424,832
5Apr 28, 2026 17:4411,75327,919,3279,309,0001,034,0002,494,464
6Apr 28, 2026 17:4411,75929,802,0939,314,0001,034,0002,428,928
7Apr 28, 2026 17:4411,77029,356,8129,323,0001,035,0002,420,736
8Apr 28, 2026 17:4411,85026,415,3549,386,0001,042,0002,330,624
9Apr 28, 2026 17:4411,86528,380,0399,398,0001,044,0002,424,832
10Apr 28, 2026 17:4412,14429,509,1399,619,0001,068,0002,433,024
11Apr 28, 2026 17:4412,20530,012,7689,667,0001,074,0002,465,792
12Apr 28, 2026 17:4412,38430,530,0177,926,0002,972,0002,433,024