C++: What is wrong with my prime number function?
This is my assignment:
A positive integer greater than 1 is said to be prime if ithas no divisors other than 1 and itself. A positive integer greaterthan 1 is composite if it is not prime. Write a program that asksthe user to enter an integer greater than 1, then displays all ofthe prime numbers that are less than or equal to the numberentered. The program should work as follows:
- Once the user has entered a number, the program shouldpopulate a vector with all of the integers from 2, up through thevalue entered.
- The program
OR
PayPal Gateway not configured
ORPayPal Gateway not configured