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 listJun 29, 2026 13:10Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 23:48Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 01:180153,657,301144,661,00002,113,536expected "27363014258774 ", got "24292893320526 "
2Sep 5, 2026 01:180152,892,370144,453,00002,113,536expected "27588624462729 ", got "24366807827430 "
3Sep 5, 2026 01:180161,023,063152,666,00002,113,536expected "28179189304292 ", got "23538590756230 "
4Jun 29, 2026 13:124,74311,888,2294,174,00002,113,536
5Jun 29, 2026 13:124,75511,912,5534,185,00002,113,536
6Jun 29, 2026 13:124,75911,936,2334,188,00002,113,536
7Jun 29, 2026 13:124,84320,418,8084,262,00002,113,536
8Jun 29, 2026 13:124,85712,162,8734,275,00002,113,536
9Jun 29, 2026 13:124,86112,263,7384,278,00002,113,536
10Jun 29, 2026 13:124,86211,947,0454,279,00002,113,536
11Jun 29, 2026 13:124,86411,958,4004,281,00002,113,536
12Jun 29, 2026 13:124,86411,990,2014,281,00002,113,536