Prime numbers calculator

Use the prime numbers calculator below to discover if any given number is a prime. You can also get a prime numbers chart with all primes before this given number.

Prime Numbers Calculator

Enter a integer number to analyse:
Ex.: 2, 3, 4, 11, 125, etc.
Number Analysis:
The number 0 (zero) isn't prime. Read more about primes below in this web page.

What is a prime number?

Definition of prime 1

An integer greater than one is called a prime number if its only positive divisors (factors) are one and itself. For example, the only divisors of 11 are 1 and 11, so 11 is a prime number, while the number 51 has divisors 3, 17 and 51 itself (51 = 3•17), making 51 not a prime number.

Definition of prime 2

A positive integer that is not divisible without remainder by any integer except itself and 1, with 1 often excluded.

Note that:

  • 0 (zero) is not a prime number because it isn't divided by itself. Zero has an infinite number of divisors (any nonzero whole number divides zero). It cannot be written as a product of two factors, neither of which is itself, so zero is also not composite. More concisely, zero is not a prime or a composite number either.
  • 1 (one) is neither a prime nor a composite number. One has only one positive divisor. It cannot be written as a product of two factors, neither of which is itself, so one is also not composite. THe number one falls in a class of numbers called units.
References: Why is the number one not prime? and 1 and 0: Prime or Composite?

Sample Numbers - Check if they are prime.


While every effort is made to ensure the accuracy of the information provided on this website, we offer no warranties in relation to these informations.