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 16:05Ivan BessonovIvan BessonovScore: 19,447Success
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 16:0519,32543,423,31515,006,0002,000,0002,289,664
2May 18, 2024 15:5519,36641,705,39216,040,0001,002,0002,289,664
3May 18, 2024 15:5519,38634,715,37316,057,0001,003,0002,297,856
4May 18, 2024 15:5519,39740,087,67315,061,0002,008,0002,289,664
5May 18, 2024 16:0519,41543,342,91416,080,0001,005,0002,289,664
6May 18, 2024 15:5519,41549,945,48415,075,0002,010,0002,289,664
7May 18, 2024 15:5519,41738,310,43315,077,0002,010,0002,306,048
8May 18, 2024 15:5519,41840,632,85615,078,0002,010,0002,289,664
9May 18, 2024 15:5519,41940,412,71315,079,0002,010,0002,289,664
10May 18, 2024 16:0519,42043,590,64516,085,0001,005,0002,306,048
11May 18, 2024 15:5519,43134,596,64015,088,0002,011,0002,301,952
12May 18, 2024 16:0519,44739,721,77215,100,0002,013,0002,289,664
13May 18, 2024 15:5519,44745,607,65415,100,0002,013,0002,301,952
14May 18, 2024 16:0519,46938,474,34816,126,0001,007,0002,289,664
15May 18, 2024 16:0520,05241,498,72116,608,0001,038,0002,306,048
16May 18, 2024 15:5520,06094,752,42217,652,81502,289,664
17May 18, 2024 16:0520,08545,871,80616,636,0001,039,0002,289,664
18May 18, 2024 16:0520,13645,582,23716,678,0001,042,0002,289,664
19May 18, 2024 16:0520,19346,082,89316,725,0001,045,0002,387,968
20May 18, 2024 16:0520,36481,352,49917,920,35502,289,664
21May 18, 2024 16:0520,62780,114,85918,151,83802,285,568
22May 18, 2024 15:5520,70169,680,21418,216,58002,277,376
23May 18, 2024 16:0520,72381,833,92118,236,45102,285,568
24May 18, 2024 15:5520,75770,069,07518,265,97002,277,376