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 30, 2026 03:49olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:41M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:42010,239,9491,667,00002,117,632expected "6442459076 ", got "2147491785 "
2May 17, 2026 08:42010,979,1981,703,00002,117,632expected "6442459076 ", got "2147491785 "
3May 17, 2026 08:42012,367,6981,674,00002,117,632expected "6442459076 ", got "2147491785 "
4Apr 30, 2026 03:5011,68233,155,7659,253,0001,028,0002,375,680
5Apr 30, 2026 03:5011,69827,319,0289,266,0001,029,0002,326,528
6Apr 30, 2026 03:5011,73627,140,7729,296,0001,032,0002,330,624
7Apr 30, 2026 03:5011,75731,701,4709,313,0001,034,0002,371,584
8Apr 30, 2026 03:5011,84828,634,5069,385,0001,042,0002,375,680
9Apr 30, 2026 03:5011,84824,199,1019,385,0001,042,0002,363,392
10Apr 30, 2026 03:5011,87130,668,2819,403,0001,044,0002,383,872
11Apr 30, 2026 03:5011,89736,519,5259,423,0001,047,0002,363,392
12Apr 30, 2026 03:5012,85029,639,43811,308,00002,433,024