Skip to content
M2TOOLKIT

Calculators · free tool

Prime Number Checker

Find out if a number is prime, and break any number into its prime factors.

Use it as often as you like — it's free, with no sign-up and no limits.

  • Calculators
  • Free
  • No sign-up
  • Nothing is sent or stored
  • Updated

Up to 10,000,000,000,000.

Result

221 is
Not prime
Prime factorization
13 × 17
Number of divisors
4
Smallest factor other than 1: 13, since 221 = 13 × 17.

The calculation happens instantly in your browser. The numbers you enter are not sent to our servers or saved.

How to use the Prime Number Checker

  1. Enter a whole number.
  2. See whether it's prime.
  3. If not, read its prime factorization and smallest factor.

What does this tool do?

A prime number has exactly two factors: 1 and itself. 2, 3, 5, 7 and 11 are prime; 9 is not, because 9 = 3 × 3.

Every whole number above 1 can be written as a product of primes in exactly one way — its prime factorization. The checker finds it by trial division.

Why use it?

  • Instant answers up to 10 trillion.
  • Shows the full factorization, not just yes or no.
  • Counts the divisors too.

Use cases

  • Maths homework on factors and primes.
  • Simplifying fractions with prime factors.
  • Puzzles and number games.

Example: is 221 prime?

No. 221 = 13 × 17. It looks prime because it isn't divisible by 2, 3, 5, 7 or 11, which is why it's a classic trick question.

Common mistakes

  • Calling 1 a prime.
  • Stopping trial division too early — check up to the square root.
  • Assuming all odd numbers are prime, like 9, 15 or 21.

Privacy

The calculation happens instantly in your browser. The numbers you enter are not sent to our servers or saved. There's no account to create and nothing to install.

Frequently asked questions

Is 1 a prime number?

No. A prime must have exactly two different factors, and 1 has only one.

Is 2 the only even prime?

Yes. Every other even number is divisible by 2, so it has at least three factors.

How far do I need to check for factors?

Only up to the square root of the number. Any larger factor pairs with a smaller one.

How many primes are there?

Infinitely many, as Euclid proved over 2,000 years ago.

Content last updated . See how M2Toolkit works.

Other tools people use alongside the prime number checker.