Determine if the number is prime if n is prime then print a


Question: Please use a at least one for loop--Thank you for your help

Part 1: Inputs an integer from the user, N. 

Part 2: If the integer is not between 0 and 8000000, then the program keeps prompting the user to re-enter the number till the integer is within the proper range.

Part 3: Determine if the number is prime. If N is prime, then print a message stating that it is prime.

Part 4: If the number is not prime, say it is not prime and print out its smallest factor (other than 1).

How to find that number is prime or not?

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Determine if the number is prime if n is prime then print a
Reference No:- TGS0953330

Expected delivery within 24 Hours