Guest Session: 1 Question Remaining. Create Account to save progress.
Login
Primeshard
0:00.0

The Miller-Rabin primality test is a probabilistic algorithm. For a given odd integer n>3n > 3n>3, we write n−1=2s⋅dn - 1 = 2^s \cdot dn−1=2s⋅d where ddd is odd. If ad≡1(modn)a^d \equiv 1 \pmod nad≡1(modn) or a2r⋅d≡−1(modn)a^{2^r \cdot d} \equiv -1 \pmod na2r⋅d≡−1(modn) for some 0≤r<s0 \le r < s0≤r<s, then nnn is a 'strong probable prime' to base aaa. For n=121n = 121n=121, which base a=3a=3a=3 reveals it as composite?