- Write a program that outputs all the factors (excluding 1) of numbers falling within a range. The program should prompt the user for a low and high bound and then output all the factors of the numbers inside the bounds. For example, entering 2 for the low bound and 20 for the high bound would yield the following result:

- Write a program that outputs all the
*prime*factors of numbers falling within a range. This is similar to Problem 1, except that all output numbers should be prime, and the product of all the numbers on any line should yield the original number. For example, the prime factors of numbers between 2 and 20 are:

Java

Purchase the answer to view it