Get Math Help

GET TUTORING NEAR ME!

(800) 434-2582

By submitting the following form, you agree to Club Z!'s Terms of Use and Privacy Policy

    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

    Back to List | POWERED BY THE WOLFRAM LANGUAGE