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 30, 2026 08:00olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:28M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:28011,527,6854,344,00002,113,536expected "6442459076 ", got "2147490262 "
2May 17, 2026 07:28011,447,5164,353,00002,113,536expected "6442459076 ", got "2147490262 "
3May 17, 2026 07:28011,921,6354,551,00002,113,536expected "6442459076 ", got "2147490262 "
4Apr 30, 2026 08:0111,38930,946,9648,019,0002,004,0002,326,528
5Apr 30, 2026 08:0111,40128,665,1047,023,0003,010,0002,547,712
6Apr 30, 2026 08:0111,40425,344,5099,033,0001,003,0002,539,520
7Apr 30, 2026 08:0111,41823,271,9618,039,0002,009,0002,543,616
8Apr 30, 2026 08:0111,42127,006,6648,041,0002,010,0002,482,176
9Apr 30, 2026 08:0111,43225,622,3318,049,0002,012,0002,486,272
10Apr 30, 2026 08:0111,45429,243,7958,064,0002,016,0002,547,712
11Apr 30, 2026 08:0111,48426,938,2258,085,0002,021,0002,539,520
12Apr 30, 2026 08:0111,57529,405,2808,149,0002,037,0002,478,080