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 12, 2022 17:22Kenneth MaplesKenneth MaplesScore: 61,441Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 12, 2022 17:2055,273116,649,61048,640,46602,252,800
2Oct 12, 2022 17:2055,273107,687,39548,639,82002,265,088
3Oct 12, 2022 17:2255,275107,838,77148,641,82802,256,896
4Oct 12, 2022 17:2055,330105,480,46748,690,36802,252,800
5Oct 12, 2022 17:2255,452110,869,67948,797,70302,256,896
6Oct 12, 2022 17:2255,518104,415,11348,855,90502,252,800
7Oct 12, 2022 17:2061,35277,197,67651,991,0001,999,0002,273,280
8Oct 12, 2022 17:2261,35881,809,69152,996,000999,0002,281,472
9Oct 12, 2022 17:2061,39178,595,84353,024,0001,000,0002,265,088
10Oct 12, 2022 17:2061,42290,215,27652,050,0002,001,0002,269,184
11Oct 12, 2022 17:2061,43179,751,88053,058,0001,001,0002,273,280
12Oct 12, 2022 17:2061,44081,603,66752,065,0002,002,0002,281,472
13Oct 12, 2022 17:2061,44177,396,02352,066,0002,002,0002,269,184
14Oct 12, 2022 17:2061,44276,413,09054,069,00002,281,472
15Oct 12, 2022 17:2061,46675,575,49753,089,0001,001,0002,265,088
16Oct 12, 2022 17:2261,48985,508,19852,106,0002,004,0002,273,280
17Oct 12, 2022 17:2261,49277,263,35553,111,0001,002,0002,281,472
18Oct 12, 2022 17:2261,49375,016,53853,112,0001,002,0002,281,472
19Oct 12, 2022 17:2061,51780,774,35552,130,0002,005,0002,281,472
20Oct 12, 2022 17:2261,53376,480,54652,144,0002,005,0002,265,088
21Oct 12, 2022 17:2261,59277,340,23252,194,0002,007,0002,269,184
22Oct 12, 2022 17:2261,61676,797,72352,214,0002,008,0002,273,280
23Oct 12, 2022 17:2261,64881,444,89252,241,0002,009,0002,269,184
24Oct 12, 2022 17:2261,66777,826,32552,258,0002,009,0002,281,472