Question: Your assignment is to implement a recursive divide and conquer algorithm that finds the largest prime number in a list of integers in JAVA. A
Your assignment is to implement a recursive divide and conquer algorithm that finds the largest prime number in a list of integers in JAVA. A prime number is a number that is only evenly divisible by itself and 1 (1,2, 3, 5, 7, 11, etc). It should meet the following requirements:
1. The program shall use a graphical user interface to allow the user to select a file from any location on their computer.
2. The program shall read the selected file which will contain 1 integer per line.
3. The program shall determine which of the integers is the largest prime or indicate if there are no prime numbers.
4. The program shall write the output to a file in the same directory as the input file.
5. The program shall use a recursive divide and conquer algorithm to find the largest prime number.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
