Your prime
Generated in your browser. Press Space to generate again.
Generate random prime numbers in any range up to 10,000,000 — for math practice, puzzles or testing.
Generated in your browser. Press Space to generate again.
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 →Yes. We list every prime in your range with a sieve and pick from that list, so each prime has the same chance.
Yes. Values come from your browser’s cryptographic random source, and every possible value has the same chance.