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 listFeb 22, 2026 20:29zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:13M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:13010,867,5461,116,00002,113,536expected "6442459076 ", got "2305422648 "
2May 17, 2026 05:13010,976,1211,120,00002,113,536expected "6442459076 ", got "2305422648 "
3May 17, 2026 05:13011,250,7511,117,00002,113,536expected "6442459076 ", got "2305422648 "
4Feb 22, 2026 20:283,06820,549,8192,700,00002,424,832
5Feb 22, 2026 20:293,07720,869,2192,708,00002,437,120
6Feb 22, 2026 20:283,08519,409,6602,715,00002,424,832
7Feb 22, 2026 20:293,09424,351,2722,723,00002,424,832
8Feb 22, 2026 20:293,09817,774,0422,726,00002,420,736
9Feb 22, 2026 20:273,10623,062,5592,733,00002,424,832
10Feb 22, 2026 20:273,10725,546,2632,734,00002,424,832
11Feb 22, 2026 20:293,11816,288,2522,744,00002,277,376
12Feb 22, 2026 20:273,13020,387,6602,754,00002,428,928
13Feb 22, 2026 20:293,13119,934,7342,755,00002,424,832
14Feb 22, 2026 20:283,14416,335,5522,767,00002,535,424
15Feb 22, 2026 20:293,14920,681,9072,771,00002,424,832
16Feb 22, 2026 20:293,16723,647,7972,787,00002,428,928
17Feb 22, 2026 20:293,31122,812,8311,943,000971,0002,420,736
18Feb 22, 2026 20:283,31423,424,6451,944,000972,0002,420,736
19Feb 22, 2026 20:273,31518,698,8041,945,000972,0002,420,736
20Feb 22, 2026 20:293,31920,106,5832,921,00002,428,928
21Feb 22, 2026 20:293,32224,688,1562,923,00002,424,832
22Feb 22, 2026 20:293,32515,648,2691,951,000975,0002,428,928
23Feb 22, 2026 20:273,33024,717,9942,930,00002,519,040
24Feb 22, 2026 20:283,59419,868,9792,109,0001,054,0002,420,736
25Feb 22, 2026 20:273,64120,066,3182,136,0001,068,0002,420,736
26Feb 22, 2026 20:283,68022,061,2062,159,0001,079,0002,277,376
27Feb 22, 2026 20:293,70019,719,2253,256,00002,428,928