Enter a whole number
Type any positive integer — small or large.
Enter any whole number to instantly check if it's prime, list its factors, and see its full prime factorization.
Type any positive integer — small or large.
The checker tests divisibility up to the square root of your number to prove primality.
Get the prime factorization, every factor, and the nearest primes on either side.
A prime number is a whole number greater than 1 that has exactly two factors: 1 and itself. Numbers with more than two factors are called composite.
No. By definition, 1 has only one factor (itself), so it is classified as neither prime nor composite.
It tests divisibility by every integer up to the square root of the number, which is enough to prove primality. Extremely large numbers (beyond about 15 digits) may take a moment or lose precision in standard JavaScript numbers.