140k views
1 vote
Use the Miller–Rabin test on each of the following numbers. In each case, either provide a Miller–Rabin witness for the compositeness of n, or conclude that n is probably prime by providing 10 numbers that are not Miller–Rabin witnesses for n.(a) n = 1105.(b) n = 294409(c) n = 294439(d) n = 118901509(e) n = 118901521(f) n = 118901527(g) n = 118915387

User Myxtic
by
2.9k points

1 Answer

1 vote

Answer:

In miller-Rabin test, write n-1 as product of an odd number 'm' and 'a' power of 2.


n - 1 = mx2^k

The format test in 'a" can be written as
a^(n-1) = a^(mx2^k)

find
\bar I = a^mmodn

⇒ if
\bar I = 1 , n is a composite, otherwise 'n' is a prime.

Explanation:

see details

Use the Miller–Rabin test on each of the following numbers. In each case, either provide-example-1
Use the Miller–Rabin test on each of the following numbers. In each case, either provide-example-2
Use the Miller–Rabin test on each of the following numbers. In each case, either provide-example-3
Use the Miller–Rabin test on each of the following numbers. In each case, either provide-example-4
Use the Miller–Rabin test on each of the following numbers. In each case, either provide-example-5
User Dewayne
by
3.3k points