Write a JAVA program in which a positive whole number is first read in. A ‘for-loop’ is used to extract the factors of the given number. If there are no factors in the range 2 to (n-1), then that number should be a prime number. A break statement is used to transfer the control out of the for loop, if there is a factor ?