needs some help (C++)
Define a function named isPrime() that determineswhether an integer is a prime
number. Use the following function header:
bool isPrime(int num)
An integer greater than 1 is a prime number if its only divisorsare 1 and itself. For
example, isPrime(11) returns true, and isPrime(9) returnsfalse.
Use your isPrime() function in a complete program thatdetermines and prints
the first 50 prime numbers (NOTE: this isNOT the same as “all of the prime
numbers less than or equal to 1000”), displaying every ten primenumbers in a separate
row, as follows. Also, in your main function, calculate anddisplay the total of all of these prime numbers.
2 3 5 7 11
PayPal Gateway not configured
PayPal Gateway not configured