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 14, 2026 13:32limanjun99limanjun99Error
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 5, 2026 21:07Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2026 21:13023,277,37310,923,0001,252,0002,113,536expected "40128331940035 ", got "14289442286337"
2Oct 5, 2026 21:13026,687,43214,412,0001,269,0002,113,536expected "23263169050352 ", got "11083804471193"
3Oct 5, 2026 21:13028,127,29915,713,0001,286,0002,113,536expected "23446314619807 ", got "10292865619877"
4Apr 14, 2026 13:3218,37646,555,76014,150,0002,021,0002,494,464
5Apr 14, 2026 13:3218,43134,607,99114,192,0002,027,0002,445,312
6Apr 14, 2026 13:3218,43343,394,62214,194,0002,027,0002,445,312
7Apr 14, 2026 13:3218,93843,013,43615,624,0001,041,0002,359,296
8Apr 14, 2026 13:3218,98440,569,59715,662,0001,044,0002,519,040
9Apr 14, 2026 13:3219,17340,260,58113,895,0002,977,0002,359,296
10Apr 14, 2026 13:3219,19442,851,62014,904,0001,987,0002,441,216
11Apr 14, 2026 13:3219,19448,394,80215,898,000993,0002,486,272
12Apr 14, 2026 13:3219,19946,537,84315,902,000993,0002,441,216