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 27, 2026 06:28Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 23:06Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 00:370157,899,037148,499,0001,006,0002,138,112expected "27882678026400 ", got "24802804208414 "
2Sep 5, 2026 00:370153,822,807144,405,0001,005,0002,138,112expected "29741329527188 ", got "25665253152311 "
3Sep 5, 2026 00:370156,484,126146,415,0001,277,0002,138,112expected "28354417478882 ", got "25677718351637 "
4Jun 27, 2026 06:326,08214,945,5004,095,0001,258,0002,142,208
5Jun 27, 2026 06:326,27513,055,2444,152,0001,370,0002,142,208
6Jun 27, 2026 06:326,28914,419,4134,245,0001,290,0002,142,208
7Jun 27, 2026 06:326,30415,065,8444,266,0001,282,0002,142,208
8Jun 27, 2026 06:326,31115,199,0314,100,0001,454,0002,142,208
9Jun 27, 2026 06:326,32514,180,1194,277,0001,289,0002,142,208
10Jun 27, 2026 06:326,33215,292,3204,426,0001,147,0002,142,208
11Jun 27, 2026 06:326,36015,345,5554,352,0001,245,0002,142,208
12Jun 27, 2026 06:326,36114,898,9904,093,0001,505,0002,142,208