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 15:38Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:28M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:2809,753,1992,557,00002,113,536expected "6442459076 ", got "50700646218 "
2May 17, 2026 07:28010,001,9592,689,00002,113,536expected "6442459076 ", got "50700646218 "
3May 17, 2026 07:28010,128,3282,556,00002,113,536expected "6442459076 ", got "50700646218 "
4Apr 24, 2026 15:3811,21529,128,5527,896,0001,974,0002,490,368
5Apr 24, 2026 15:3811,21727,931,4287,897,0001,974,0002,473,984
6Apr 24, 2026 15:3811,22126,269,6177,900,0001,975,0002,490,368
7Apr 24, 2026 15:3811,24426,400,3617,916,0001,979,0002,478,080
8Apr 24, 2026 15:3811,25622,871,3397,925,0001,981,0002,326,528
9Apr 24, 2026 15:3811,26426,843,1027,931,0001,982,0002,486,272
10Apr 24, 2026 15:3811,30126,793,9657,956,0001,989,0002,322,432
11Apr 24, 2026 15:3811,38726,951,2898,017,0002,004,0002,322,432
12Apr 24, 2026 15:3811,42127,533,6438,041,0002,010,0002,330,624