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:55Robert BurkeRobert BurkeScore: 20,431Success
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 08:5518,03556,166,60115,870,68902,265,088
2Oct 6, 2023 08:5518,13287,196,61315,956,35502,252,800
3Oct 6, 2023 08:5518,15372,056,46915,974,22602,265,088
4Oct 6, 2023 08:5518,16777,571,22415,986,97702,260,992
5Oct 6, 2023 08:5518,27697,402,90116,083,03502,252,800
6Oct 6, 2023 08:5518,36751,158,38716,162,64602,256,896
7Oct 6, 2023 08:5520,35945,370,45915,926,0001,990,0002,420,736
8Oct 6, 2023 08:5520,36847,086,63417,924,00002,281,472
9Oct 6, 2023 08:5520,40636,975,38915,962,0001,995,0002,277,376
10Oct 6, 2023 08:5520,40841,315,30115,964,0001,995,0002,424,832
11Oct 6, 2023 08:5520,41847,981,39515,972,0001,996,0002,281,472
12Oct 6, 2023 08:5520,42041,172,41316,972,000998,0002,281,472
13Oct 6, 2023 08:5520,43141,131,59515,982,0001,997,0002,281,472
14Oct 6, 2023 08:5520,43441,781,06215,984,0001,998,0002,416,640
15Oct 6, 2023 08:5520,43636,711,44115,986,0001,998,0002,416,640
16Oct 6, 2023 08:5520,46143,654,66216,006,0002,000,0002,281,472
17Oct 6, 2023 08:5520,46538,916,27116,008,0002,001,0002,400,256
18Oct 6, 2023 08:5520,46833,749,70716,011,0002,001,0002,412,544
19Oct 6, 2023 08:5520,47242,760,65716,014,0002,001,0002,420,736
20Oct 6, 2023 08:5520,48042,069,45617,021,0001,001,0002,281,472
21Oct 6, 2023 08:5520,49841,499,17916,034,0002,004,0002,281,472
22Oct 6, 2023 08:5520,50037,716,51716,036,0002,004,0002,416,640
23Oct 6, 2023 08:5520,56045,000,30016,083,0002,010,0002,281,472
24Oct 6, 2023 08:5520,63637,025,39716,143,0002,017,0002,420,736