Arithmetic & Number Theory
nth Prime
Find the nth prime number.
Formula
Formula
pn = the n-th prime
Variables
| Symbol | Definition | Type & range | Units | Role |
|---|---|---|---|---|
| n | index (1-based) | integer (ℤ) | — | input |
| pₙ | n-th prime | computed result | — | result |
Try it yourself
Interactive calculator
Worked examples
Example 1
Givenn = 10
Result29
Example 2
Givenn = 25
Result97