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 19:47Ivan BessonovIvan BessonovScore: 17,125Success
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 19:4216,95732,554,37112,933,0001,989,0002,289,664
2May 18, 2024 19:4416,96042,363,15113,930,000995,0002,289,664
3May 18, 2024 19:4216,97735,588,73212,948,0001,992,0002,289,664
4May 18, 2024 19:4216,97836,173,01212,949,0001,992,0002,289,664
5May 18, 2024 19:5016,98538,100,27913,951,000996,0002,330,624
6May 18, 2024 19:5016,98934,441,26613,954,000996,0002,289,664
7May 18, 2024 19:5016,99931,865,91112,965,0001,994,0002,318,336
8May 18, 2024 19:4716,99944,909,99912,965,0001,994,0002,289,664
9May 18, 2024 19:4417,00538,520,03812,969,0001,995,0002,322,432
10May 18, 2024 19:4717,01828,951,27312,980,0001,996,0002,285,568
11May 18, 2024 19:5017,02433,856,09112,984,0001,997,0002,289,664
12May 18, 2024 19:4717,02538,604,67812,985,0001,997,0002,322,432
13May 18, 2024 19:4217,03930,669,14312,995,0001,999,0002,318,336
14May 18, 2024 19:4717,04538,705,89013,000,0002,000,0002,322,432
15May 18, 2024 19:4417,05835,473,69813,010,0002,001,0002,289,664
16May 18, 2024 19:4217,06435,182,41113,014,0002,002,0002,289,664
17May 18, 2024 19:5017,06731,144,83413,017,0002,002,0002,289,664
18May 18, 2024 19:4417,07431,151,02613,022,0002,003,0002,433,024
19May 18, 2024 19:4417,08830,559,63713,032,0002,005,0002,449,408
20May 18, 2024 19:4417,09031,911,17813,034,0002,005,0002,289,664
21May 18, 2024 19:4417,09941,133,14913,041,0002,006,0002,289,664
22May 18, 2024 19:4717,10131,944,63013,043,0002,006,0002,289,664
23May 18, 2024 19:5017,11136,242,84213,051,0002,007,0002,322,432
24May 18, 2024 19:5017,12032,399,54014,062,0001,004,0002,289,664
25May 18, 2024 19:4717,12532,335,14114,066,0001,004,0002,289,664
26May 18, 2024 19:4717,14442,732,51514,082,0001,005,0002,289,664
27May 18, 2024 19:4717,14532,188,30913,077,0002,011,0002,289,664
28May 18, 2024 19:5017,20638,538,08513,123,0002,018,0002,289,664
29May 18, 2024 19:4717,24033,042,13713,149,0002,022,0002,289,664
30May 18, 2024 19:4217,40561,793,05515,316,10902,174,976
31May 18, 2024 19:4717,43787,350,95815,344,84302,187,264
32May 18, 2024 19:5017,44274,071,93115,348,58102,179,072
33May 18, 2024 19:4717,44967,125,37715,355,12302,187,264
34May 18, 2024 19:4217,49691,117,03215,396,84002,179,072
35May 18, 2024 19:4417,49767,126,51815,397,20702,183,168
36May 18, 2024 19:4717,50783,911,76715,405,80602,183,168
37May 18, 2024 19:4217,74935,231,87114,578,0001,041,0002,289,664
38May 18, 2024 19:5017,82371,211,61915,684,00702,306,048
39May 18, 2024 19:4217,82344,943,61315,684,00002,322,432
40May 18, 2024 19:4217,93041,630,71514,727,0001,051,0002,289,664
41May 18, 2024 19:4417,93242,224,58814,728,0001,052,0002,322,432
42May 18, 2024 19:4417,99486,466,53315,834,70002,301,952
43May 18, 2024 19:4218,03145,599,40413,884,0001,983,0002,318,336
44May 18, 2024 19:5018,07541,604,28413,918,0001,988,0002,326,528
45May 18, 2024 19:4418,09132,008,22414,925,000995,0002,322,432
46May 18, 2024 19:4418,26869,047,56616,075,41902,183,168
47May 18, 2024 19:5018,35271,255,43616,149,67902,301,952
48May 18, 2024 19:4218,36277,877,67316,158,58402,174,976