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 14, 2026 17:28limanjun99limanjun99Error
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:43M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:43013,919,01402,139,0002,121,728expected "6442459076 ", got "2147491626"
2May 17, 2026 08:43011,237,09502,240,0002,121,728expected "6442459076 ", got "2147491626"
3May 17, 2026 08:43011,326,17602,200,0002,121,728expected "6442459076 ", got "2147491626"
4Apr 14, 2026 17:2816,69431,366,81013,642,0001,049,0002,347,008
5Apr 14, 2026 17:2816,72232,528,30112,613,0002,102,0002,338,816
6Apr 14, 2026 17:2816,72640,473,42113,668,0001,051,0002,437,120
7Apr 14, 2026 17:2816,73650,611,13612,624,0002,104,0002,437,120
8Apr 14, 2026 17:2816,75642,215,04613,692,0001,053,0002,457,600
9Apr 14, 2026 17:2816,76631,585,87712,647,0002,107,0002,293,760
10Apr 14, 2026 17:2817,33830,706,74512,206,0003,051,0002,433,024
11Apr 14, 2026 17:2817,55845,515,85213,391,0002,060,0002,498,560
12Apr 14, 2026 17:2817,56452,318,03812,365,0003,091,0002,338,816