Project 6, 2015  Research Experience for Teachers  Project 4, 2016 

MillerRabin Prime Number Generator 
Choose either Gen Prime to generate prime numbers or Test Prime to test one. In the case of Gen Prime enter a number of bits between 4 and 86 in the text field at the upper left. If this cannot be done, press the Try Again button first. Press Start to begin. Press Next to advance to the next step of the MillerRabin algorithm. Numbers to be tried as prime are displayed in the text fields labeled n:. When the MillerRabin test fails for a nonprime, that number will become red. Then, advancing to the next step results in a new number to be tried. If the number to be tried is prime, it will show yellow when the MillerRabin test has been applied, indicating it has passed the test. Then, advancing to the next step results in a new a: number and MillerRabin test. If the number is prime, it will never go red. The only way to generate a new number in that case is to press the Try Again button. 
Examples:
1217 (a prime), 705 (a nonprime), 14
