Sieve of Eratosthenes - Algorithm Complexity

Algorithm Complexity

Time complexity in the random access machine model is operations, a direct consequence of the fact that the prime harmonic series asymptotically approaches .

The bit complexity of the algorithm is bit operations with a memory requirement of .

The segmented version of the sieve of Eratosthenes, with basic optimizations, uses operations and bits of memory.

Read more about this topic:  Sieve Of Eratosthenes

Famous quotes containing the word complexity:

    The price we pay for the complexity of life is too high. When you think of all the effort you have to put in—telephonic, technological and relational—to alter even the slightest bit of behaviour in this strange world we call social life, you are left pining for the straightforwardness of primitive peoples and their physical work.
    Jean Baudrillard (b. 1929)