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 24, 2026 16:47Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:46M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:47012,381,5491,703,0001,524,0002,170,880expected "6442459076 ", got "50700646218 "
2May 17, 2026 07:47011,802,6731,654,0001,453,0002,215,936expected "6442459076 ", got "50700646218 "
3May 17, 2026 07:47012,150,3781,649,0001,483,0002,170,880expected "6442459076 ", got "50700646218 "
4Apr 24, 2026 16:4911,79430,420,38810,379,00002,433,024
5Apr 24, 2026 16:4911,80625,833,76310,390,00002,433,024
6Apr 24, 2026 16:4911,83625,847,8459,375,0001,041,0002,441,216
7Apr 24, 2026 16:4911,85422,877,96710,432,00002,412,544
8Apr 24, 2026 16:4911,88224,334,6358,366,0002,091,0002,424,832
9Apr 24, 2026 16:4911,91124,470,3789,434,0001,048,0002,478,080
10Apr 24, 2026 16:4911,93626,690,8919,454,0001,050,0002,437,120
11Apr 24, 2026 16:4911,94324,191,3999,459,0001,051,0002,428,928
12Apr 24, 2026 16:4911,95933,619,2999,472,0001,052,0002,433,024