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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!