Skip to main content

Prime Number Checker

Is your number prime?

Interactive Tool
Live Calculation

Prime Number Checker

undefined

Evaluated Formula:undefined
Guidance:
2 is the only even prime number.
The largest known prime has over 41 million digits.
Is Prime?
1

Calculated instantly

Number of Factors2

Embed this calculator

Put this calculator on your own site with the snippet below. The frame contains the tool only, reports its own height, and carries a visible link back to the full page. Embedding is free; keep the attribution link as it is, and do not wrap the frame in a way that hides it.

Preparing the embed code for this page...

What This Calculator Does

The Prime Number Checker determines if a number is prime and lists its prime factors if it is not. A prime number is only divisible by 1 and itself.

How It Works

Test divisibility up to the square root. If no divisor is found, the number is prime.

Example

97 is prime. 100 = 2^2 x 5^2. 13 is prime.

Formula

Test
Check divisibility up to sqrt(n)

Reading the Results

Is Prime?

Yes if the number is only divisible by 1 and itself. No otherwise.

Number of Factors

The total count of positive divisors. Primes have exactly 2 factors.

Frequently Asked Questions

How do I check if a number is prime?

Check divisibility from 2 to the square root of the number. If none divide evenly, it is prime.

Why is 1 not prime?

By mathematical definition, a prime must have exactly two distinct positive divisors. 1 has only one.

What are prime factors?

Prime factors are the prime numbers that multiply together to give the original number.