GET TUTORING NEAR ME!

By providing your phone number, you consent to receive text messages from Club Z! for purposes related to our services. Message frequency may vary. Message and Data Rates may apply. Reply HELP for help or STOP to unsubscribe. See our Privacy Policy and our Terms and Conditions page

    Home / Get Math Help

    Strong Pseudoprime Test

    Definition

    A primality test that provides an efficient probabilistic algorithm for determining if a given number is prime. It is based on the properties of strong pseudoprimes. The algorithm proceeds as follows. Given an odd integer n, let n = 2^r s + 1 with s odd. Then choose a random integer a with 1<=a<=n - 1. If a^s congruent 1 (mod n) or a^(2^j s) congruent -1 (mod n) for some 0<=j<=r - 1, then n passes the test. A prime will pass the test for all a.

    Related Wolfram Language symbol

    PrimeQ