Question: IMPLEMENT IN JAVA 1) Ask the user for two positive integers odd number and security parameter. Theodd number should be represented in Java as BigInteger
IMPLEMENT IN JAVA
1) Ask the user for two positive integers "odd number" and "security parameter". The"odd number" should be represented in Java as "BigInteger" data type and the "security parameter" as an "int" type in Java.
2) Implement in Java the "Miller-Rabin" algorithm to decide whether the "odd number" is prime or composite.
3) Print in the console "composite" or "it is likely a prime
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
