Prime Number Checker

Check whether any whole number is a prime number.

Calculate

Enter your values below.

Result

Is it prime?
0

Formula used

A number is prime if it is greater than 1 and has no divisors other than 1 and itself. The calculator tests divisibility up to the square root of the number.

Example: 97 is prime.

How to use this calculator

  1. Enter Number.
  2. Press Calculate to see your result instantly.

Frequently asked questions

What is a prime number?

A whole number greater than 1 that has exactly two divisors: 1 and itself.

Is 1 a prime number?

No, by definition 1 is neither prime nor composite.

Is 2 a prime number?

Yes — 2 is the smallest and only even prime number.

How does the check work efficiently for large numbers?

It only tests divisors up to the square root of the number, since any larger factor would have a matching smaller one.