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 09:32Robert BurkeRobert BurkeScore: 21,717Success
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:3217,17293,114,03115,111,04202,248,704
2Oct 6, 2023 09:3217,17777,345,74015,115,52202,252,800
3Oct 6, 2023 09:3217,22352,936,69215,156,09802,260,992
4Oct 6, 2023 10:0717,24697,748,03015,176,23702,256,896
5Oct 6, 2023 10:0717,31089,939,47215,232,61702,265,088
6Oct 6, 2023 10:0717,33089,930,59715,250,37202,252,800
7Oct 6, 2023 10:0721,64146,338,78917,040,0002,004,0002,281,472
8Oct 6, 2023 10:0721,65941,390,91817,054,0002,006,0002,416,640
9Oct 6, 2023 10:0721,66644,996,99217,059,0002,007,0002,416,640
10Oct 6, 2023 10:0721,68441,281,17617,074,0002,008,0002,412,544
11Oct 6, 2023 10:0721,69742,637,28217,084,0002,009,0002,281,472
12Oct 6, 2023 10:0721,70340,703,88517,089,0002,010,0002,281,472
13Oct 6, 2023 09:3221,71741,900,42117,100,0002,011,0002,420,736
14Oct 6, 2023 09:3221,73845,049,88018,123,0001,006,0002,420,736
15Oct 6, 2023 09:3221,75839,002,72317,132,0002,015,0002,506,752
16Oct 6, 2023 09:3221,76841,346,48317,140,0002,016,0002,412,544
17Oct 6, 2023 09:3221,77243,863,64817,143,0002,016,0002,420,736
18Oct 6, 2023 09:3221,78244,539,69618,104,0001,064,0002,281,472
19Oct 6, 2023 10:0721,80342,784,68817,168,0002,019,0002,408,448
20Oct 6, 2023 10:0721,80540,909,48617,169,0002,019,0002,281,472
21Oct 6, 2023 09:3221,80547,088,42217,169,0002,019,0002,412,544
22Oct 6, 2023 10:0721,82644,255,70017,186,0002,021,0002,281,472
23Oct 6, 2023 09:3221,83840,895,15817,195,0002,022,0002,514,944
24Oct 6, 2023 09:3221,91843,385,41617,258,0002,030,0002,277,376