Name your files hw02_<problem>.cpp. Email all files to my Helios account.
Write a program that finds and prints all of the prime numbers between 3 and 100. A prime number is a number such that one and itself are the only numbers that evenly divide it (e.g., 3, 5, 7, 11, 13, 17, ...).As the book suggest, you use nested loops to solve this problem. There is actually a more optimal range for the inner loop than what the book suggests. Think about the nature of factoring to see if you can find the more optimal range for your program.
Welcome to the CS221 Homework 2 Menu ==================================== 1. Multiply two integers 2. Divide two integers 3. Check if a number is within the range 10-20 4. Find the minimum of a list of 3 numbers 0. Exit ==================================== Enter selection:As before, the menu should loop until the user enters the selection 0. Change your switch() statement to use function calls for each menu option rather than placing the statements within each case statement. You will actually have functions calling functions within this program. Here is a list of functions you will need to define:
case 1: do_multiply(); break;The do_multiply() function asks the user for two integers, calls the multiply function and prints the result of that multiplication to the screen. The do_division() function asks the user for two integers, calls the division function and prints the result to the screen. The do_check() function asks the user for an integer, calls the check range function and prints "within range" if it is within range or "outside of range" if it is not. The do_minimum() function asks the user for three integers, calls the minimum function and prints the result to the screen.