Question: c++ Make a program that will show all the prime numbers between 2 and 1000. List 10 numbers per line and show the total prime
c++
Make a program that will show all the prime numbers between 2 and 1000. List 10 numbers per line and show the total prime numbers found in the end. You dont need to have a separate function for this program (you can put all your code in main).
#include
using namespace std;
bool isPrime()
{
bool prime= true
for()
{
if ()
prime=false;
}
return 0;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
