Prime Number Checker & Factorisation
Check whether a number is prime, see its full prime factorisation and factor count, and find nearby primes.
Disclaimer. This calculator is provided for educational and general-purpose use. Verify critical or high-stakes calculations independently before relying on them. Read full disclaimer →
About Prime Number Checker
A prime number is divisible only by 1 and itself. To check if n is prime, test divisibility by all integers up to the square root of n - if none divide evenly, n is prime. This is efficient because if n has a factor larger than its square root, the complementary factor must be smaller than the square root.
Prime numbers are the building blocks of all integers - every integer greater than 1 is a unique product of primes (Fundamental Theorem of Arithmetic). Primes are essential in cryptography: RSA encryption relies on the computational difficulty of factoring the product of two very large prime numbers. There are infinitely many primes, as proved by Euclid around 300 BCE. The largest known prime numbers now contain over 40 million digits.