protected override bool IsPrimeInternal(BigInteger value) { if (value <= ulong.MaxValue) { return(MillerRabin.IsPrime((ulong)value)); } if (!MillerRabin.IsProbablePrime(value)) { return(false); // false is the only deterministic result. } // Lucas-Selfridge here? :( return(Polynomial.IsPrime(value, 6)); }
protected override bool IsPrimeInternal(BigInteger value) { return(Polynomial.IsPrime(value, 6UL)); }