inkfish/primes.py
def odd_primes_below_n(n):
    """ Returns a list of odd primes less than n. """
    sieve = [True] * (n // 2)
    for i in range(3, int(n ** 0.5) + 1, 2):
        if sieve[i // 2]:
            sieve[i * i // 2::i] = [False] * ((n-i*i-1)//(2*i)+1)
    return [2 * i + 1 for i in range(1, n//2) if sieve[i]]
 Returns a list of odd primes less than n. 
Returns a list of odd primes less than n.
Returns a list of odd primes less than n .
def odd_primes_below_n(n):
    sieve = [True] * (n // 2)
    for i in range(3, int(n ** 0.5) + 1, 2):
        if sieve[i // 2]:
            sieve[i * i // 2::i] = [False] * ((n-i*i-1)//(2*i)+1)
    return [2 * i + 1 for i in range(1, n//2) if sieve[i]]
def odd_primes_below_n ( n ) : sieve = [ True ] * ( n // 2 ) for i in range ( 3 , int ( n ** 0.5 ) + 1 , 2 ) : if sieve [ i // 2 ] : sieve [ i * i // 2 : : i ] = [ False ] * ( ( n - i * i - 1 ) // ( 2 * i ) + 1 ) return [ 2 * i + 1 for i in range ( 1 , n // 2 ) if sieve [ i ] ]
Returns a list of odd primes less than n.
Returns a list of odd primes less than n .
""" Returns a list of odd primes less than n. """
n