(n)
return int(gmpy2.next_prime(r))
return a random n-bit prime number
return a random n-bit prime number
return a random n - bit prime number
def getprimeover(n):
    """return a random n-bit prime number"""
    r = gmpy2.mpz(random.SystemRandom().getrandbits(n))
    r = gmpy2.bit_set(r, n - 1)

    return int(gmpy2.next_prime(r))
def getprimeover ( n ) : r = gmpy2 . mpz ( random . SystemRandom ( ) . getrandbits ( n ) ) r = gmpy2 . bit_set ( r , n - 1 ) return int ( gmpy2 . next_prime ( r ) )