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 23, 2026 11:14Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:40M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:41013,906,8314,160,00002,117,632expected "6442459076 ", got "50700646218 "
2May 17, 2026 08:41014,772,0444,165,00002,117,632expected "6442459076 ", got "50700646218 "
3May 17, 2026 08:41014,424,5694,173,00002,117,632expected "6442459076 ", got "50700646218 "
4Apr 23, 2026 11:1514,35730,820,57012,635,00002,379,776
5Apr 23, 2026 11:1514,38930,316,85411,608,0001,055,0002,379,776
6Apr 23, 2026 11:1514,39731,805,40311,615,0001,055,0002,379,776
7Apr 23, 2026 11:1514,41334,855,44711,627,0001,057,0002,375,680
8Apr 23, 2026 11:1514,43130,370,73311,642,0001,058,0002,387,968
9Apr 23, 2026 11:1514,44630,339,24611,654,0001,059,0002,322,432
10Apr 23, 2026 11:1514,45431,573,81011,660,0001,060,0002,453,504
11Apr 23, 2026 11:1514,47130,610,49511,674,0001,061,0002,387,968
12Apr 23, 2026 11:1514,47530,961,13511,677,0001,061,0002,383,872