Generate Random Prime Numbers
Pick random primes from a range using a sieve-then-sample approach.
Pick random prime numbers from a range without writing any sieve code yourself. Set your count and max, hit generate, and you get unique primes back — sorted, with no duplicates. And everything runs in your browser. Nothing gets uploaded.
How It Works
First, all primes up to the specified maximum are generated using the Sieve of Eratosthenes. Then the requested number of primes are randomly selected from this pool. Each selection is unique — no duplicates.