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 16, 2024 17:43Ivan BessonovIvan BessonovScore: 32,132Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 17:3131,91851,951,32027,085,0001,003,0002,269,184
2May 16, 2024 17:3131,93050,501,00926,091,0002,007,0002,289,664
3May 16, 2024 17:3131,95354,174,32826,111,0002,008,0002,289,664
4May 16, 2024 17:4331,97852,419,85926,131,0002,010,0002,273,280
5May 16, 2024 17:4332,01755,090,94626,163,0002,012,0002,289,664
6May 16, 2024 17:4332,04158,322,74126,182,0002,014,0002,273,280
7May 16, 2024 17:3132,04554,728,10226,186,0002,014,0002,289,664
8May 16, 2024 17:3132,05348,272,43627,200,0001,007,0002,293,760
9May 16, 2024 17:4332,06950,347,85526,206,0002,015,0002,269,184
10May 16, 2024 17:3132,07549,018,37427,218,0001,008,0002,269,184
11May 16, 2024 17:4332,09252,765,59526,224,0002,017,0002,289,664
12May 16, 2024 17:3132,09955,532,94026,230,0002,017,0002,387,968
13May 16, 2024 17:3132,13255,050,41727,267,0001,009,0002,289,664
14May 16, 2024 17:4332,15655,411,57826,276,0002,021,0002,289,664
15May 16, 2024 17:3132,17787,138,45028,315,87302,256,896
16May 16, 2024 17:4332,18656,463,08326,301,0002,023,0002,289,664
17May 16, 2024 17:4332,20687,774,65928,341,08102,252,800
18May 16, 2024 17:3132,24799,217,32628,377,23702,260,992
19May 16, 2024 17:4332,25259,307,90426,355,0002,027,0002,289,664
20May 16, 2024 17:4332,252111,146,98028,382,02102,256,896
21May 16, 2024 17:3132,25359,705,94426,356,0002,027,0002,289,664
22May 16, 2024 17:4332,29093,089,93028,415,04402,256,896
23May 16, 2024 17:3132,32298,557,72528,443,35802,256,896
24May 16, 2024 17:4332,33154,993,95927,435,0001,016,0002,289,664