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

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 14:50Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 14:54039,411,59829,068,0001,088,0002,138,112expected "23431686309053 ", got "18950889649880 "
2Oct 31, 2026 14:54028,054,46217,720,0001,114,0002,138,112expected "40251102696284 ", got "30564597343091 "
3Oct 31, 2026 14:54039,395,31829,074,0001,117,0002,138,112expected "23479562203792 ", got "18949108153640 "
4Jun 10, 2026 18:278,46417,748,0966,209,0001,240,0002,142,208
5Jun 10, 2026 18:278,51516,868,1046,233,0001,261,0002,142,208
6Jun 10, 2026 18:278,53816,975,8406,254,0001,260,0002,142,208
7Jun 10, 2026 18:278,54216,611,5916,230,0001,287,0002,142,208
8Jun 10, 2026 18:278,54516,977,8026,362,0001,158,0002,142,208
9Jun 10, 2026 18:278,56716,483,1926,351,0001,188,0002,142,208
10Jun 10, 2026 18:278,56916,816,9546,256,0001,285,0002,142,208
11Jun 10, 2026 18:278,66515,122,1496,390,0001,236,0002,138,112
12Jun 10, 2026 18:278,67815,247,6186,397,0001,240,0002,142,208