Skip to content
RandNext
Esc

Random Prime Number Generator

Generate random prime numbers in any range up to 10,000,000 — for math practice, puzzles or testing.

  • Made in your browser
  • Fair, cryptographic randomness
  • Copy all in one click

Your prime

Generated in your browser. Press Space to generate again.

Random Prime API

A dedicated public endpoint for Random Prime Number Generator is not available yet. The RandNext API currently supports random jokes, quotes, questions and words.

View available API endpoints →

You might also like

How to use it

  1. 1Set the range.
  2. 2Choose how many primes.
  3. 3Press Generate.

FAQ

Are these really primes?

Yes. We list every prime in your range with a sieve and pick from that list, so each prime has the same chance.

Is it really random?

Yes. Values come from your browser’s cryptographic random source, and every possible value has the same chance.