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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!