Question: Exercise#1: Is it a Prime? Write a program that prompts the user to enter a positive integer in the range (100, 100000]. If the integer
Exercise#1: Is it a Prime? Write a program that prompts the user to enter a positive integer in the range (100, 100000]. If the integer is not in the specified range the program prompts the user again. The program prints whether the integer is a prime number or not. Sample input/ output: nter an integer in the range [100, 100000]: 39 nter an integer in the range [100, 1ee00j: 120453 Enter an integer in the range [100, 180000]: 5791 791 is prime
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
