As mentioned in the property of divisibility, any integer has two distinct positive divisors: 1 and itself, and also two distinct negative divisors: -1 and . The prime numbers are defined as the follows.

Definition:

An integer is prime, if and it has no divisors other than and .

A number which is not prime, and not nor is commonly referred as a composite number.

This name suggests that composite numbers are composed of prime numbers, and we should view prime numbers as the building blocks of all integers. This is in fact a non-formal way to state the fundamental theorem of arithmetic. Before we state this theorem, we will establish some properties of prime numbers.

Properties of Prime Numbers

In our definition of prime numbers, we allow to be negative. This sounds strange at first, but it generalize better when we deal with abstract rings and ideals. The price is, we need to be careful when stating properties of prime numbers. We start with the easiest properties, the proof of which are left as exercises.

  1. is prime if and only if is prime.
  2. If and are both prime, and , then .
  3. If is prime, and , then .

The second property is already suggesting prime numbers has some kind of uniqueness and exclusiveness. The following theorem makes this kind of intuition precise.

Theorem:

Let be an integer which is not and not . Then is prime if and only if has the following property:

Proof of Theorem

We have two directions to prove. First, we assume is prime, and show the property holds. We can do a proof by contradiction: if is a prime and does not have the property, then there exists such that , but and . Now consider , it must be due to is prime and . Recall the property of coprime numbers, we have , which leads to a contradiction.

Second, we assume the property holds, and show is prime. We can do a proof by contradiction: if has the property, but is not prime, i.e. has a divisor other than and . Then for some integer , and and . Now cannot be a divisor for or due to and , this contradicts the property.

It is not hard to generalize the above theorem to the multiple product case. We state it as a corollary.

Corollary:

Let be an integer which is not and not . Then is prime if and only if has the following property: