gmp :: BigInt :: next_prime
self
This fonction uses a probabilistic algorithm.
assert(11.to_bi.next_prime == 13.to_bi)
# Return the next prime number greater than `self`. # This fonction uses a probabilistic algorithm. # # assert(11.to_bi.next_prime == 13.to_bi) fun next_prime: BigInt do var res = new NativeMPZ val.nextprime res return new BigInt(res) end