Prime Number Checker

Test primality and get the full prime factorisation. Check whether any number is prime and see its prime factorisation instantly. Also shows the nearest primes above and below. Free prime checker.

This tool runs 100% in your browser. Your input is never sent to any server — you can even go offline after the page loads.

About the Prime Number Checker

A prime number has exactly two divisors: 1 and itself. This checker tests any integer up to the trillions using trial division against candidate factors — with the optimisation of testing only 2, 3 and numbers of the form 6k±1 — then reports whether the number is prime. If it is composite, you get the complete prime factorisation; either way you also see the nearest primes above and below, useful for hunting twin primes or classroom exercises.

How to use the Prime Number Checker

  1. Type any positive integer.
  2. The verdict appears instantly.
  3. If composite, read the prime factorisation.
  4. Check neighbouring primes to explore further.

Key features

Why is 1 not a prime number?
By definition a prime has exactly two distinct divisors. 1 has only one, so it is neither prime nor composite — a convention that keeps theorems about unique factorisation clean.
What is the fastest way to check small primes?
Trial division up to the square root is fast for numbers below a trillion, which is exactly what this tool does with 6k±1 stepping.

Related Math Calculators tools

More utilities from the same category.

View all →