Arithmetic & Number Theory

nth Prime

Find the nth prime number.

Formula

Formula
pn = the n-th prime

Variables

SymbolDefinitionType & rangeUnitsRole
n index (1-based) integer (ℤ) — input
pₙ n-th prime computed result — result

Try it yourself

Interactive calculator
Result
—

Worked examples

Example 1
Givenn = 10
Result29
Example 2
Givenn = 25
Result97