MillerRabin
Miller-Rabin is a probabilistic primality test used to determine whether a given integer is prime. It is commonly referred to as the Miller–Rabin test, named after Gary L. Miller and Michael O. Rabin, who developed and refined it in the late 20th century. The algorithm tests numbers for primality by assessing whether they are strong probable primes to certain bases, providing a controllable trade-off between efficiency and error probability.
The test operates on odd integers n > 2. Write n − 1 as d · 2^s with d odd.
Deterministic variants exist for numbers below certain bounds, using fixed sets of bases to guarantee primality
Overall, Miller-Rabin provides a practical balance between accuracy and performance, making it a standard tool in