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 18:54Ivan BessonovIvan BessonovScore: 17,255Success
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 18:5617,08631,192,07613,032,0002,004,0002,306,048
2May 18, 2024 18:5517,15829,728,66114,093,0001,006,0002,289,664
3May 18, 2024 18:5417,16136,480,96413,089,0002,013,0002,289,664
4May 18, 2024 18:5517,17632,377,10413,100,0002,015,0002,289,664
5May 18, 2024 18:5617,18049,667,82013,103,0002,015,0002,289,664
6May 18, 2024 18:5417,18435,528,96514,114,0001,008,0002,306,048
7May 18, 2024 18:5517,20331,881,83014,130,0001,009,0002,297,856
8May 18, 2024 18:5617,20634,607,48615,141,00002,289,664
9May 18, 2024 18:5517,20935,842,46314,135,0001,009,0002,293,760
10May 18, 2024 18:5517,20936,256,41413,125,0002,019,0002,281,472
11May 18, 2024 18:5617,20948,066,85514,135,0001,009,0002,289,664
12May 18, 2024 18:5517,22032,303,86914,144,0001,010,0002,289,664
13May 18, 2024 18:5417,22434,703,88713,136,0002,021,0002,289,664
14May 18, 2024 18:5617,22737,630,82813,139,0002,021,0002,289,664
15May 18, 2024 18:5617,22735,617,19613,139,0002,021,0002,306,048
16May 18, 2024 18:5417,24034,231,92114,160,0001,011,0002,285,568
17May 18, 2024 18:5417,24333,811,16913,151,0002,023,0002,289,664
18May 18, 2024 18:5417,24734,089,59513,154,0002,023,0002,289,664
19May 18, 2024 18:5617,25534,216,25914,172,0001,012,0002,289,664
20May 18, 2024 18:5617,29341,139,04413,189,0002,029,0002,289,664
21May 18, 2024 18:5617,43557,859,16915,343,06302,285,568
22May 18, 2024 18:5417,49080,717,28915,391,39502,289,664
23May 18, 2024 18:5518,10748,040,96813,943,0001,991,0002,301,952
24May 18, 2024 18:5418,11337,935,61714,877,0001,062,0002,289,664
25May 18, 2024 18:5618,12335,497,65914,952,000996,0002,289,664
26May 18, 2024 18:5518,12538,040,39915,950,00002,297,856
27May 18, 2024 18:5518,133100,076,16715,957,31502,281,472
28May 18, 2024 18:5418,14537,669,60813,972,0001,996,0002,289,664
29May 18, 2024 18:5418,16286,040,32715,982,85902,281,472
30May 18, 2024 18:5418,16744,401,86013,989,0001,998,0002,297,856
31May 18, 2024 18:5418,25882,784,14016,067,12502,293,760
32May 18, 2024 18:5518,29338,479,70714,086,0002,012,0002,289,664
33May 18, 2024 18:5518,32179,448,75316,122,39202,289,664
34May 18, 2024 18:5618,34888,025,28316,146,04102,281,472
35May 18, 2024 18:5518,42783,458,20716,215,51802,281,472
36May 18, 2024 18:5618,45784,876,06416,242,24802,293,760