You will need some variables to keep track of which prime


Write 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: You will need some variables to keep track of which prime
Reference No:- TGS01246055

Now Priced at $20 (50% Discount)

Recommended (93%)

Rated (4.5/5)