answersLogoWhite

0

Prints the 1000th prime number

Updated: 10/25/2022
User Avatar

Wiki User

13y ago

Best Answer

// Print Prime number series.

class prime

{

void main ()

{

int i = 1;

int C = 0;

int n = 1;

int X = 0;

while (X != 1000)

{

if ( n % i n )

{

C = 0;

n++ ;

i = 0;

}

}

i++ ;

}

}

}

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Prints the 1000th prime number
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the 1000th prime number?

7919.


What is the 1001st prime number?

The 1000th is 7919, so the 1001st is 7927.


What is my number my number is a perfect square the only prime number and it prints at your location is to my number is a factor of 32 dozen of its digits is odd?

16


What is the 1000th odd number?

1 is the 1st odd number 3 is the 2nd odd number 5 is the 3rd odd number and so on 7 is the 4th odd number and so on if x is the 1000th odd number then x=2*1000-1=1999


Draw a flowchart to print prime numbers from 1 to 100?

The flowchart above starts with the number 2 and checks each number 3, 4, 5, and so forth. Each time it finds a prime it prints the number and increments a counter. When the counter hits 100, it stops the process. To determine whether a number is prime, it calls the function "IsThisNumberPrime" which is shown at the top of this page.


What is 6 to the 1000th power?

6 to the 1000th power


What number does the prefix milli represent?

It means "a thousandth of" - for instance, a millimetre is 1000th of a metre.


What is the 1000th digit in pi?

The 1000th digit of pi is...9


What is the phone number of the Ambers Originals And Prints in Chesterfield Virginia?

The phone number of the Ambers Originals And Prints is: 804-739-7466.


How do you spell 1000th?

The ordinal 1000th is "one thousandth" or simply "thousandth."


How will you know you have your 1000th customer in style savvy?

Renee normally tells you when it gets to a number like that


What is you called when the prime factorization of a number is 1 and itself?

You is called a prime number!You is called a prime number!You is called a prime number!You is called a prime number!