Nth Prime Calculator
Enter a position N and instantly find the exact prime number at that index (1-based).
Use the Nth Prime Calculator
Find the Nth Prime
Supports N from 1 to 10,000.
to
Range span capped at 200 primes.
Enter a position above to see results.
The Nth prime is
—
Neighbors:
Quick Reference — Notable Primes
| Position (N) | Prime | Note |
|---|
Copied!
Summary
The Nth Prime Calculator finds the prime number that sits at a given position in the ordered sequence of primes. The 1st prime is 2, the 2nd is 3, the 3rd is 5, and so on. This tool computes the answer entirely in your browser using optimized trial division, with no server calls.
How it works
- Enter a positive integer N in the input field.
- The calculator iterates through natural numbers, testing each for primality.
- It counts qualifying primes until it reaches the Nth one.
- The result is displayed instantly along with a short prime sequence preview.
- You can also enter a range (start N to end N) to list several primes at once.
Use cases
- Verify prime-number homework or exam answers.
- Generate test data for cryptography and algorithm exercises.
- Explore the distribution of prime numbers at large positions.
- Quickly look up well-known primes (100th, 1000th, 10000th).
- Teach number theory concepts in a classroom or workshop.
- Cross-check results from custom prime-finding code.
- Support competitive programming practice (ICPC, Codeforces, etc.).
Frequently Asked Questions
Last updated: 2026-05-29 · Reviewed by Nham Vu