Prime Number Checker

Enter a number to check if it's prime or composite.

How It Works / Formula

A prime number is a natural number greater than 1 that is not a product of two smaller natural numbers. In other words, a prime number is a number that has exactly two distinct positive divisors: 1 and itself.

Examples

2 is a prime number.
4 is a composite number (2 x 2).
17 is a prime number.