A deterministic Miller-Rabin primality test chooses bases justified to distinguish every composite in a specified input range, instead of sampling bases for a probabilistic guarantee. For each base, write with odd , test , and square successively according to the Miller-Rabin primality test. A failing base certifies compositeness; passing a fixed list certifies primality only under the proven range theorem for that list. For machine integers such as , established finite-range base sets permit deterministic implementations. The exact bases, bound, treatment of small primes and modular-arithmetic overflow are part of the algorithm's contract.

Articles by others on the same topic (0)

There are currently no matching articles.