**>>> This site will be down for maintenance (and submissions blocked) intermittently Wed 21 Jan 2021.**

# The Nth Prime Page

### A prime page by Andrew Booker

Welcome to the Nth Prime Page!

### Nth prime

Here's how it works: Enter a value for *n* below,
from 1 to 10^{12}, inclusive. The server will return the
*n*th prime number (counting 2 as the first). Commas and
scientific notation (e.g. 1.0e12) are allowed. For example,
entering either 1,000,000,000,000 or 1.0e12 will tell you '```
The
1,000,000,000,000th prime is 29,996,224,275,833.
```

' Depending
on the load of the server and the number you pick, your query may take up
to 10 seconds.

The 974,461st prime is 15,061,973.

### Pi function

Enter a value for *x* below, from 1 to
3*10^{13}. The server will return pi(*x*), the number
of primes not exceeding *x*. For example, entering
29,996,224,275,833 will tell you '```
There are 1,000,000,000,000 primes
less than or equal to 29,996,224,275,833.
```

'

### Random prime

Click below to get a "random" prime chosen from the
first 10^{12} primes: