If is prime, Fermat's little theorem gives . If , the strong test already passes. Otherwise let be the first index with . Its preceding value satisfies and in the field . Since in a field, . The index lies between zero and , so every coprime base passes the strong test when is prime.

Articles by others on the same topic (0)

There are currently no matching articles.