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:

    It is not only their own need to mother that takes some women by surprise; there is also the shock of discovering the complexity of alternative child-care arrangements that have been made to sound so simple. Those for whom the intended solution is equal parenting have found that some parents are more equal than others.
    Elaine Heffner (20th century)