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 listJan 20, 2026 16:08Johan SannemoJohan SannemoError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 12:59M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 12:59012,220,35701,828,0002,121,728expected "6442459076 ", got "2147488520 "
2May 17, 2026 12:59013,777,02201,979,0002,121,728expected "6442459076 ", got "2147488520 "
3May 17, 2026 12:59012,261,90401,995,0002,121,728expected "6442459076 ", got "2147488520 "
4Jan 20, 2026 16:088,69529,344,3206,559,0001,093,0002,506,752
5Jan 20, 2026 16:088,76730,169,8836,613,0001,102,0002,392,064
6Jan 20, 2026 16:088,79823,545,9785,530,0002,212,0002,502,656