Nth Prime Calculator

Enter a position N and instantly find the exact prime number at that index (1-based).

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.

Quick Reference — Notable Primes

Position (N) Prime Note
Copied!

Summary

Enter a position N and instantly find the exact prime number at that index (1-based).

How it works

  1. Enter a positive integer N in the input field.
  2. The calculator iterates through natural numbers, testing each for primality.
  3. It counts qualifying primes until it reaches the Nth one.
  4. The result is displayed instantly along with a short prime sequence preview.
  5. 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-06-10 · Reviewed by Nham Vu