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 listMay 18, 2024 15:51Ivan BessonovIvan BessonovScore: 19,406Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 15:5019,25746,575,92314,953,0001,993,0002,289,664
2May 18, 2024 15:5019,29349,470,79414,981,0001,997,0002,306,048
3May 18, 2024 15:5119,31050,998,17815,994,000999,0002,289,664
4May 18, 2024 15:5119,31433,500,12414,997,0001,999,0002,289,664
5May 18, 2024 15:5119,32549,005,39215,006,0002,000,0002,289,664
6May 18, 2024 15:5019,32634,266,87215,007,0002,000,0002,310,144
7May 18, 2024 15:5019,33545,570,41316,015,0001,000,0002,289,664
8May 18, 2024 15:5019,33834,277,41315,015,0002,002,0002,289,664
9May 18, 2024 15:5119,35244,028,85015,027,0002,003,0002,289,664
10May 18, 2024 15:5019,35839,566,74815,031,0002,004,0002,289,664
11May 18, 2024 15:5119,38141,496,71315,049,0002,006,0002,289,664
12May 18, 2024 15:5019,38533,256,93515,052,0002,007,0002,314,240
13May 18, 2024 15:5019,40640,237,17515,068,0002,009,0002,310,144
14May 18, 2024 15:5120,01837,825,20716,580,0001,036,0002,314,240
15May 18, 2024 15:5120,02745,497,59616,588,0001,036,0002,289,664
16May 18, 2024 15:5020,04140,663,22316,599,0001,037,0002,289,664
17May 18, 2024 15:5120,11945,409,20017,705,00002,310,144
18May 18, 2024 15:5120,19242,011,43416,724,0001,045,0002,289,664
19May 18, 2024 15:5120,55063,403,52718,083,84702,289,664
20May 18, 2024 15:5020,73998,404,04518,250,62702,285,568
21May 18, 2024 15:5020,75085,942,21218,259,61702,256,896
22May 18, 2024 15:5120,79592,115,83518,299,49102,289,664
23May 18, 2024 15:5020,80872,029,97018,310,87702,289,664
24May 18, 2024 15:5120,82160,587,52518,322,35702,289,664