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 listFeb 15, 2024 13:02Robert BurkeRobert BurkeScore: 21,620Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 15, 2024 13:0217,15781,752,71715,098,46502,260,992
2Feb 15, 2024 13:0217,17357,299,27215,112,28002,260,992
3Feb 15, 2024 13:0217,19089,190,09215,127,15602,252,800
4Feb 15, 2024 13:0217,24793,432,22715,177,50002,256,896
5Feb 15, 2024 13:0217,27254,303,63615,198,98702,260,992
6Feb 15, 2024 13:0217,30783,877,09915,229,75102,248,704
7Feb 15, 2024 13:0221,55646,994,99416,973,0001,996,0002,281,472
8Feb 15, 2024 13:0221,56139,240,32416,977,0001,997,0002,281,472
9Feb 15, 2024 13:0221,56944,068,49116,983,0001,998,0002,281,472
10Feb 15, 2024 13:0221,59945,789,37517,007,0002,000,0002,281,472
11Feb 15, 2024 13:0221,60749,475,52017,013,0002,001,0002,281,472
12Feb 15, 2024 13:0221,61037,480,97617,016,0002,001,0002,416,640
13Feb 15, 2024 13:0221,62041,480,93417,024,0002,002,0002,281,472
14Feb 15, 2024 13:0221,63048,526,93118,033,0001,001,0002,420,736
15Feb 15, 2024 13:0221,65143,105,08317,048,0002,005,0002,281,472
16Feb 15, 2024 13:0221,65737,150,53218,055,0001,003,0002,281,472
17Feb 15, 2024 13:0221,65745,539,20717,052,0002,006,0002,281,472
18Feb 15, 2024 13:0221,66138,997,81318,059,0001,003,0002,416,640
19Feb 15, 2024 13:0221,67439,128,45817,066,0002,007,0002,416,640
20Feb 15, 2024 13:0221,74243,438,63417,119,0002,014,0002,281,472
21Feb 15, 2024 13:0221,74841,864,41517,124,0002,014,0002,514,944
22Feb 15, 2024 13:0221,75844,312,35417,132,0002,015,0002,510,848
23Feb 15, 2024 13:0221,84437,616,21817,200,0002,023,0002,416,640
24Feb 15, 2024 13:0221,85649,225,87817,209,0002,024,0002,408,448