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 listDec 28, 2022 03:19Robert BurkeRobert BurkeScore: 18,884Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 03:1918,77643,902,85716,523,00002,392,064
2Dec 28, 2022 03:1918,79333,574,15214,471,0002,067,0002,490,368
3Dec 28, 2022 03:1918,80634,338,62216,549,00002,273,280
4Dec 28, 2022 03:1918,80941,891,12015,518,0001,034,0002,273,280
5Dec 28, 2022 03:1918,81738,134,86116,559,00002,273,280
6Dec 28, 2022 03:1918,82239,059,28216,563,00002,273,280
7Dec 28, 2022 03:1918,84134,361,47415,544,0001,036,0002,392,064
8Dec 28, 2022 03:1918,84339,654,49215,546,0001,036,0002,396,160
9Dec 28, 2022 03:1918,86733,735,24415,566,0001,037,0002,273,280
10Dec 28, 2022 03:1918,87431,259,00216,609,00002,535,424
11Dec 28, 2022 03:1918,88233,523,92114,539,0002,077,0002,273,280
12Dec 28, 2022 03:1918,88395,828,92416,617,15402,236,416
13Dec 28, 2022 03:1918,88442,568,92915,580,0001,038,0002,396,160
14Dec 28, 2022 03:1918,88641,711,27016,620,00002,535,424
15Dec 28, 2022 03:1918,89860,446,27616,630,00202,240,512
16Dec 28, 2022 03:1918,94968,640,81516,674,74302,224,128
17Dec 28, 2022 03:1918,95148,583,18216,677,00002,400,256
18Dec 28, 2022 03:1918,95242,621,28115,636,0001,042,0002,392,064
19Dec 28, 2022 03:1918,96134,889,10615,644,0001,042,0002,441,216
20Dec 28, 2022 03:1918,96965,127,25316,692,28502,232,320
21Dec 28, 2022 03:1918,97036,090,29415,651,0001,043,0002,273,280
22Dec 28, 2022 03:1918,98541,376,63716,707,00002,535,424
23Dec 28, 2022 03:1919,00675,836,52016,725,00902,228,224
24Dec 28, 2022 03:1919,07167,244,74216,782,68502,232,320