Prime Number Calculator

Result

What is a Prime Number?

A prime number is any integer, or whole number, greater than 1 that is only divisible by 1 and itself. In other words, a prime number only has two factors, 1 and itself.

Examples:

Prime Numbers:
  • 2 - factors: 1, 2
  • 3 - factors: 1, 3
  • 5 - factors: 1, 5
  • 17 - factors: 1, 17
Composite Numbers:
  • 4 - factors: 1, 2, 4
  • 6 - factors: 1, 2, 3, 6
  • 8 - factors: 1, 2, 4, 8
  • 51 - factors: 1, 3, 17, 51

Note: The number 1 is neither prime nor composite. The number 2 is the only even prime number - all other even numbers are composite because they have 2 as a factor.