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:17Ivan BessonovIvan BessonovScore: 19,951Success
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:1719,22546,409,76314,928,0001,990,0002,289,664
2May 18, 2024 15:1719,22642,105,39315,862,0001,057,0002,289,664
3May 18, 2024 15:2719,22743,264,24415,925,000995,0002,289,664
4May 18, 2024 15:2719,23942,556,52814,939,0001,991,0002,310,144
5May 18, 2024 15:2719,25237,973,22615,946,000996,0002,289,664
6May 18, 2024 15:2719,28042,975,15514,970,0001,996,0002,289,664
7May 18, 2024 15:1719,29048,180,46414,978,0001,997,0002,289,664
8May 18, 2024 15:2719,30936,730,91715,993,000999,0002,289,664
9May 18, 2024 15:2719,31045,926,22514,994,0001,999,0002,408,448
10May 18, 2024 15:1719,34539,352,73515,022,0002,002,0002,289,664
11May 18, 2024 15:1719,88543,104,29516,470,0001,029,0002,289,664
12May 18, 2024 15:1719,93039,589,78016,507,0001,031,0002,310,144
13May 18, 2024 15:1719,95137,332,32116,525,0001,032,0002,289,664
14May 18, 2024 15:2719,99246,627,98716,559,0001,034,0002,301,952
15May 18, 2024 15:1720,04340,932,12716,601,0001,037,0002,289,664
16May 18, 2024 15:1720,08337,373,54816,634,0001,039,0002,310,144
17May 18, 2024 15:2720,08641,220,55116,637,0001,039,0002,310,144
18May 18, 2024 15:2720,10642,647,67716,653,0001,040,0002,400,256
19May 18, 2024 15:1720,30687,997,00817,868,90302,273,280
20May 18, 2024 15:2720,32296,523,90217,883,38702,289,664
21May 18, 2024 15:1720,32281,674,98417,883,71602,293,760
22May 18, 2024 15:1720,38961,074,71417,941,90302,277,376
23May 18, 2024 15:2720,89064,941,97818,382,81202,289,664
24May 18, 2024 15:2720,99594,178,81618,475,43202,277,376