math
Free
No signup
Prime Number Checker
Check if any number up to 10¹² is prime, see its factorization, and explore related prime facts.
Loading tool…
About this tool
Enter any integer up to one trillion and find out instantly whether it is prime. Uses the Miller-Rabin primality test for large numbers. Shows prime factorization for composite numbers, finds the next and previous primes, identifies special primes (Mersenne, twin, safe), and can generate the first N primes.
How to use
- 1 Enter a positive integer into the number field.
- 2 Click Check to test primality and see factorization.
- 3 Use Next Prime and Prev Prime to navigate the prime sequence.
- 4 Set a count and click Generate Primes to list the first N primes.
Frequently Asked Questions
Related tools
Percentage Calculator
Compute percentages, increases, decreases, tips, and percentage-of-total — six modes.
Scientific Calculator
Full scientific calculator with trig, logarithms, powers, and history — runs entirely in your browser.
Statistics Calculator
Calculate mean, median, mode, standard deviation, variance, and more from any dataset.