Question: c++ program please A prime number is one which does not have any other factors other than one and itself. Some prime numbers are: 2,
c++ program please
A prime number is one which does not have any other factors other than one and itself. Some prime numbers are: 2, 5, 7, 11..etc. Write a complete c++ program which will accept an integer from the user. The program will then pass this value to the isPrime function which will determine if the number is prime. If the number is prime, then the function will return true, otherwise, it will return false. The program will output if the number is prime or not to both the screen and to an output file. The program will only terminate when the user enters -100
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
