Identifying Prime and Composite Numbers
Identifying Prime and Composite Numbers
Some numbers, like \(72,\) have many factors. Other numbers, such as \(7,\) have only two factors: \(1\) and the number. A number with only two factors is called a prime number. A number with more than two factors is called a composite number. The number \(1\) is neither prime nor composite. It has only one factor, itself.
Prime Numbers and Composite Numbers
A prime number is a counting number greater than \(1\) whose only factors are \(1\) and itself.
A composite number is a counting number that is not prime.
The figure below lists the counting numbers from \(2\) through \(20\) along with their factors. The highlighted numbers are prime, since each has only two factors.
Factors of the counting numbers from \(2\) through \(20,\) with prime numbers highlighted
The prime numbers less than \(20\) are \(2,3,5,7,11,13,17,\text{and}\phantom{\rule{0.2em}{0ex}}19.\) There are many larger prime numbers too. In order to determine whether a number is prime or composite, we need to see if the number has any factors other than \(1\) and itself. To do this, we can test each of the smaller prime numbers in order to see if it is a factor of the number. If none of the prime numbers are factors, then that number is also prime.
Determine if a number is prime.
- Test each of the primes, in order, to see if it is a factor of the number.
- Start with \(2\) and stop when the quotient is smaller than the divisor or when a prime factor is found.
- If the number has a , then it is a . If it has no prime factors, then the number is prime.
Example
Identify each number as prime or composite:
- \(\phantom{\rule{0.2em}{0ex}}83\phantom{\rule{0.2em}{0ex}}\)
- \(\phantom{\rule{0.2em}{0ex}}77\)
Solution
Test each prime, in order, to see if it is a factor of \(83\), starting with \(2,\) as shown. We will stop when the quotient is smaller than the divisor.
| Prime | Test | Factor of \(83?\) |
|---|---|---|
| \(2\) | Last digit of \(83\) is not \(0,2,4,6,\text{or}\phantom{\rule{0.2em}{0ex}}8.\) | No. |
| \(3\) | \(8+3=11,\) and \(11\) is not divisible by \(3.\) | No. |
| \(5\) | The last digit of \(83\) is not \(5\) or \(0.\) | No. |
| \(7\) | \(83÷7=11.857\text{….}\) | No. |
| \(11\) | \(83÷11=7.545\text{…}\) | No. |
We can stop when we get to \(11\) because the quotient \(\text{(7.545…)}\) is less than the divisor.
We did not find any prime numbers that are factors of \(83,\) so we know \(83\) is prime.
Test each prime, in order, to see if it is a factor of \(77.\)
| Prime | Test | Factor of \(77?\) |
|---|---|---|
| \(2\) | Last digit is not \(0,2,4,6,\text{or}\phantom{\rule{0.2em}{0ex}}8.\) | No. |
| \(3\) | \(7+7=14,\) and \(14\) is not divisible by \(3.\) | No. |
| \(5\) | the last digit is not \(5\) or \(0.\) | No. |
| \(7\) | \(77÷11=7\) | Yes. |
Since \(77\) is divisible by \(7,\) we know it is not a prime number. It is composite.
This lesson is part of:
The Language of Algebra