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 21, 2026 13:33Johan SannemoJohan SannemoError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 13:21M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 13:37012,455,07901,947,0002,121,728expected "6442459076 ", got "2147486898 "
2May 17, 2026 13:37012,066,68601,963,0002,121,728expected "6442459076 ", got "2147486898 "
3May 17, 2026 13:37011,123,65401,953,0002,121,728expected "6442459076 ", got "2147486898 "
4Jan 21, 2026 13:338,85727,960,7105,567,0002,227,0002,281,472
5Jan 21, 2026 13:338,90924,530,0205,880,0001,960,0002,281,472
6Jan 21, 2026 13:339,06524,691,0184,986,0002,991,0002,498,560