isProbablyPrime(_:)

Checks whether self is prime using the Miller-Rabin algorithm

BigInt.swift:1763
func isProbablyPrime(_ p: Int = 30) -> Bool

Parameters

p

If true is returned, self is prime with probability > 1 - 1/2^p

Returns

true if self is probably prime, false if self is definitely not prime