[][src]Function glass_pumpkin::prime::check

pub fn check(candidate: &BigUint) -> bool

Test if number is prime by

1- Trying to divide by first 2048 primes 2- Perform a Fermat Test 3- Perform log2(bitlength) + 5 rounds of Miller-Rabin depending on the number of bits