Math 480, Spring 2015, Assignment 10
From cartan.math.umb.edu
Carefully define the following terms:
- Miller-Rabin witness (to the compositeness of $n$).
- Miller-Rabin test.
Carefully state the following theorems (you do not need to prove them):
- Lower bound on the number of Miller-Rabin witnesses when $n$ is composite.
- Bound on the probability that $n$ passes $N$ Miller-Rabin tests, given that $n$ is composite.
- Bound on the probability that $n$ is composite, given that it passed $N$ Miller-Rabin tests.
Carefully describe the following algorithms:
- Algorithm to return an almost-certainly-prime number $p$ in the interval $[2^{b-1}, 2^b)$ (i.e. a $b$-bit prime).
- Algorithm to return a $b$-bit safe prime.
Solve the following problems:
- Problem 3.14(a-b).
Coding projects:
- (Primes) Write a function that takes a positive integer $b$ as input, and return a $b$-bit prime. Write another function that returns a $b$-bit safe prime.