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:07Robert BurkeRobert BurkeScore: 20,389Success
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:0718,09181,367,72115,919,81202,256,896
2Oct 6, 2023 09:0718,13278,194,55715,956,22402,256,896
3Oct 6, 2023 09:0718,15866,091,58415,978,62202,256,896
4Oct 6, 2023 09:0718,23593,759,95316,047,12202,260,992
5Oct 6, 2023 09:0718,25381,654,83916,062,48802,256,896
6Oct 6, 2023 09:0718,27885,345,74616,084,66102,260,992
7Oct 6, 2023 09:0720,32736,815,69415,901,0001,987,0002,420,736
8Oct 6, 2023 09:0720,34743,702,47616,911,000994,0002,281,472
9Oct 6, 2023 09:0720,35545,301,58115,922,0001,990,0002,281,472
10Oct 6, 2023 09:0720,36136,003,91016,923,000995,0002,281,472
11Oct 6, 2023 09:0720,36339,965,81216,924,000995,0002,281,472
12Oct 6, 2023 09:0720,38644,156,21215,947,0001,993,0002,281,472
13Oct 6, 2023 09:0720,38937,953,13917,942,00002,412,544
14Oct 6, 2023 09:0720,39438,752,63116,950,000997,0002,281,472
15Oct 6, 2023 09:0720,41544,892,15315,969,0001,996,0002,281,472
16Oct 6, 2023 09:0720,42833,478,75115,980,0001,997,0002,281,472
17Oct 6, 2023 09:0720,43045,508,96115,981,0001,997,0002,412,544
18Oct 6, 2023 09:0720,43533,447,54116,984,000999,0002,412,544
19Oct 6, 2023 09:0720,48239,442,91417,023,0001,001,0002,281,472
20Oct 6, 2023 09:0720,48542,739,95116,024,0002,003,0002,281,472
21Oct 6, 2023 09:0720,50040,510,62717,038,0001,002,0002,281,472
22Oct 6, 2023 09:0720,51137,080,72416,045,0002,005,0002,281,472
23Oct 6, 2023 09:0720,51735,175,90217,052,0001,003,0002,281,472
24Oct 6, 2023 09:0720,59443,052,46016,110,0002,013,0002,416,640