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 15, 2026 04:14limanjun99limanjun99Error
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:45M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:45011,360,39602,192,0002,121,728expected "6442459076 ", got "2147491589"
2May 17, 2026 08:45011,728,43702,227,0002,121,728expected "6442459076 ", got "2147491589"
3May 17, 2026 08:45012,815,09702,135,0002,121,728expected "6442459076 ", got "2147491589"
4Apr 15, 2026 04:1416,48240,384,82814,504,00002,465,792
5Apr 15, 2026 04:1417,15035,113,96512,074,0003,018,0002,445,312
6Apr 15, 2026 04:1417,15835,094,69511,073,0004,026,0002,297,856