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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:36M-Rochat14.07CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:37014,785,0474,346,00002,117,632expected "6442459076 ", got "50700646218 "
2May 17, 2026 08:37012,937,9794,364,00002,117,632expected "6442459076 ", got "50700646218 "
3May 17, 2026 08:37013,832,6774,345,00002,117,632expected "6442459076 ", got "50700646218 "
4Apr 23, 2026 11:5311,91526,879,8519,438,0001,048,0002,387,968
5Apr 23, 2026 11:5311,92528,541,2739,445,0001,049,0002,387,968
6Apr 23, 2026 11:5311,97728,262,2919,486,0001,054,0002,318,336
7Apr 23, 2026 11:5311,99028,952,1909,497,0001,055,0002,387,968
8Apr 23, 2026 11:5311,99629,832,2209,502,0001,055,0002,392,064
9Apr 23, 2026 11:5311,99726,392,3129,503,0001,055,0002,318,336
10Apr 23, 2026 11:5312,03824,952,8189,535,0001,059,0002,478,080
11Apr 23, 2026 11:5312,08131,979,5789,569,0001,063,0002,379,776
12Apr 23, 2026 11:5312,16332,574,0189,634,0001,070,0002,387,968