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 listOct 6, 2023 08:52Robert BurkeRobert BurkeScore: 20,411Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2023 09:0817,93072,558,54715,778,64202,265,088
2Oct 6, 2023 08:5117,93282,780,63515,780,45102,260,992
3Oct 6, 2023 08:5217,98682,468,12515,828,10502,265,088
4Oct 6, 2023 08:5117,99968,546,85715,839,14502,252,800
5Oct 6, 2023 09:0818,01184,431,08415,849,78902,248,704
6Oct 6, 2023 08:5218,02486,944,13515,861,20502,260,992
7Oct 6, 2023 08:5218,03466,729,56615,870,27302,269,184
8Oct 6, 2023 09:0818,04981,940,60715,883,47002,265,088
9Oct 6, 2023 08:5218,05477,256,75815,887,87902,252,800
10Oct 6, 2023 08:5218,06757,282,85615,898,91702,252,800
11Oct 6, 2023 08:5118,12782,488,25915,951,98202,252,800
12Oct 6, 2023 08:5218,13486,026,88915,957,61002,265,088
13Oct 6, 2023 08:5220,34446,252,77215,914,0001,989,0002,281,472
14Oct 6, 2023 08:5120,35346,377,82715,921,0001,990,0002,416,640
15Oct 6, 2023 08:5220,35549,494,07317,912,00002,412,544
16Oct 6, 2023 08:5120,35541,067,15315,922,0001,990,0002,281,472
17Oct 6, 2023 08:5220,35651,424,01415,923,0001,990,0002,281,472
18Oct 6, 2023 08:5220,36434,067,88115,929,0001,991,0002,281,472
19Oct 6, 2023 09:0820,37636,962,04715,939,0001,992,0002,281,472
20Oct 6, 2023 09:0820,38950,543,09816,946,000996,0002,420,736
21Oct 6, 2023 08:5120,39042,375,53215,950,0001,993,0002,412,544
22Oct 6, 2023 08:5120,39147,637,96615,951,0001,993,0002,412,544
23Oct 6, 2023 08:5120,39136,525,80815,951,0001,993,0002,281,472
24Oct 6, 2023 09:0820,39140,254,86215,951,0001,993,0002,281,472
25Oct 6, 2023 08:5120,41141,162,51815,967,0001,995,0002,281,472
26Oct 6, 2023 08:5220,41940,789,70216,971,000998,0002,416,640
27Oct 6, 2023 08:5220,42442,896,10215,976,0001,997,0002,281,472
28Oct 6, 2023 08:5120,42737,752,73815,979,0001,997,0002,412,544
29Oct 6, 2023 08:5220,43936,757,51915,988,0001,998,0002,412,544
30Oct 6, 2023 08:5220,44536,031,83415,993,0001,999,0002,514,944
31Oct 6, 2023 08:5220,45239,263,03715,999,0001,999,0002,281,472
32Oct 6, 2023 08:5220,46042,678,66916,005,0002,000,0002,416,640
33Oct 6, 2023 08:5220,46140,141,74816,006,0002,000,0002,412,544
34Oct 6, 2023 09:0820,46144,557,67616,006,0002,000,0002,281,472
35Oct 6, 2023 09:0820,46540,987,47016,950,0001,059,0002,281,472
36Oct 6, 2023 09:0820,46839,395,29116,011,0002,001,0002,420,736
37Oct 6, 2023 08:5220,47040,622,96916,013,0002,001,0002,412,544
38Oct 6, 2023 09:0820,49836,952,81216,034,0002,004,0002,416,640
39Oct 6, 2023 09:0820,50040,774,92817,038,0001,002,0002,281,472
40Oct 6, 2023 08:5220,50238,491,51616,038,0002,004,0002,281,472
41Oct 6, 2023 08:5220,51040,349,29516,044,0002,005,0002,514,944
42Oct 6, 2023 09:0820,51139,659,68916,045,0002,005,0002,281,472
43Oct 6, 2023 08:5220,52331,143,84717,057,0001,003,0002,416,640
44Oct 6, 2023 08:5120,53644,017,14216,064,0002,008,0002,281,472
45Oct 6, 2023 08:5220,53942,921,06816,066,0002,008,0002,281,472
46Oct 6, 2023 08:5220,54736,505,58616,072,0002,009,0002,412,544
47Oct 6, 2023 08:5220,55035,365,52116,075,0002,009,0002,281,472
48Oct 6, 2023 08:5120,57341,950,81016,093,0002,011,0002,281,472