LiteratePrograms: "Miller-Rabin Primality Test"
Create a java language program that performs Miller-Rabin primality test. One possible solution can be found via the link above. Study the solution code only after you have solved the problem or spent a substantial amount of time working on it.
Click http://web.archive.org/web/20111119225310/http://en.literateprograms.org/Miller-Rabin_primality_test_(Java) link to open resource.