Create a program-computes and prints the prime number


Discussion:

Create a program that computes and prints the 1000th prime number using code blocks c++.

a. You will need some variables to keep track of which prime number you're on and keep track of where you are in your loop.
b. Need to test odd numbers to see if they are prime..
c. Need two loops

 

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Create a program-computes and prints the prime number
Reference No:- TGS01936818

Now Priced at $25 (50% Discount)

Recommended (96%)

Rated (4.8/5)