Prime Number Checker

Type a number to see whether it is prime or composite — with the smallest divisor, the prime factorization and the nearest primes.

Is 51 prime?No — composite
Previous prime47
Next prime53
Prime factorization3 × 17

Step by step

  1. Smallest divisor: 3 (51 ÷ 3 = 17).
  2. So 51 is composite: 51 = 3 × 17

How to tell if a number is prime

A prime has exactly two factors: 1 and itself. To test n, try dividing by every prime up to √n. If none divides evenly, n is prime. For 97, √97 ≈ 9.8, and 97 is not divisible by 2, 3, 5 or 7, so 97 is prime. 51 looks prime but 51 = 3 × 17.

Quick tests

  • Even and bigger than 2 → not prime.
  • Digits add up to a multiple of 3 → divisible by 3.
  • Ends in 0 or 5 (and isn’t 5) → divisible by 5.

More in the divisibility rules; see every prime up to 1,000 in the prime numbers chart.

Frequently asked questions

Is 51 a prime number?

No — 51 = 3 × 17.

Is 1 a prime number?

No. It has only one factor.

Is 2 a prime number?

Yes — the only even prime.

Is 91 prime?

No — 91 = 7 × 13.