Function glass_pumpkin::prime::check_with
source ยท pub fn check_with<R: RngCore + ?Sized>(candidate: &BigUint, rng: &mut R) -> bool
Expand description
Test if number is prime by
1- Trial division by first 2048 primes 2- Perform a Fermat Test 3- Perform log2(bitlength) + 5 rounds of Miller-Rabin depending on the number of bits