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 29, 2026 23:31olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:44M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:44013,040,4501,702,00002,117,632expected "6442459076 ", got "2147491785 "
2May 17, 2026 08:44010,492,0851,690,00002,117,632expected "6442459076 ", got "2147491785 "
3May 17, 2026 08:44012,152,4591,705,00002,117,632expected "6442459076 ", got "2147491785 "
4Apr 29, 2026 23:3211,70028,501,7639,267,0001,029,0002,363,392
5Apr 29, 2026 23:3211,76826,163,6409,321,0001,035,0002,375,680
6Apr 29, 2026 23:3211,80625,579,2159,351,0001,039,0002,371,584
7Apr 29, 2026 23:3211,88726,985,0359,415,0001,046,0002,363,392
8Apr 29, 2026 23:3211,91530,143,1109,438,0001,048,0002,371,584
9Apr 29, 2026 23:3211,93126,500,1879,450,0001,050,0002,371,584
10Apr 29, 2026 23:3211,94531,272,0359,461,0001,051,0002,371,584
11Apr 29, 2026 23:3211,99425,805,5619,500,0001,055,0002,371,584
12Apr 29, 2026 23:3212,06931,804,2999,559,0001,062,0002,371,584