Prime Checker / Generator
Check whether a number is prime, generate primes within a range, and view prime factorizations.
Features
The prime tool provides multiple prime-related calculations.
- Prime Check: Check whether a number is prime, with prime factorization or prime index
- Prime List Generator: Generate all primes within a given range
- First N Primes: Generate the first N primes
Usage Instructions
Features
The prime tool integrates prime check, prime list generation, and first-N-primes generation. It returns prime factorization or prime index on check, and uses the Sieve of Eratosthenes for efficient prime generation.
Steps
In "Prime Check", enter a positive integer and click "Check"; in "Prime List Generator", enter the start and end of the range to generate primes in that interval; in "First N Primes", enter N to generate the first N primes. Results can be copied with one click.
Notes
All calculations run locally in your browser. To avoid lag, range generation should not exceed 1,000,000 and first-N-primes should not exceed 10,000.