Co-prime numbers (also called relatively prime numbers) are two numbers whose only common factor is 1, so their greatest common factor (GCF) is 1. 8 and 9 are co-prime, and so are 4 and 15, even though none of them is prime. 6 and 9 are not co-prime, because both can be divided by 3. Any two consecutive numbers, such as 20 and 21, are co-prime.
Reviewed by the Helping with Math Team · Updated 13 October 2026
Before the definition of co-prime numbers, here is a quick reminder of what a prime number is.
A prime number is a positive integer or number that has factors of 1 and the number itself. This means if a number has more than two factors, it is not prime but rather a composite number. Prime and co-prime numbers are about positive whole numbers, so this page uses positive numbers only.
Every whole number has 1 as a factor. Co-prime numbers are pairs of numbers that share no other factor.
Co-prime numbers definition
Co-prime numbers (also known as Relatively Prime Numbers) are a pair of numbers that have the Greatest Common Factor (GCF) as 1. In other words, these are numbers that have no common or same factors other than 1. To check whether the pair are co-prime to each other, we can list their factors and find their Greatest Common Factor or GCF.
Notation: GCD(a, b) = 1
In Number Theory, co-prime numbers have the notation of GCD (a, b) = 1, or the Greatest Common Divisor of the pair of numbers (i.e. a and b) must be 1 to consider as co-prime numbers. For instance, let’s find the GCD of 37 and 13 with the Modular Arithmetic method to check if they are relatively prime or co-prime numbers.
GCD (37, 13); where a = 37, b = 13
GCD (a, b) = GCD (b, a mod b)
GCD (37, 13) = GCD (13, 37 mod 13)
= GCD (13, 11)
GCD (13, 11) = GCD (11, 13 mod 11)
= GCD (11, 2)
GCD (11, 2) = GCD (2, 11 mod 2)
= GCD (2, 1)
GCD (2, 1) = GCD (1, 2 mod 1)
= GCD (1, 0)
Since GCD (37, 13) = GCD (1, 0), we can declare that GCD (37, 13) = 1. It means that 37 and 13’s Greatest Common Divisor is 1, and they are co-prime numbers.
“Divisors” VS “Factors”
But you may ask, “From the definition, the term ‘factor’ is used rather than ‘divisor’, are there any differences?” From what we did a while ago, we can divide 37 to any number (also known as the divisor), but the problem is, there would be a remainder. For instance, we divided 37 (dividend) by 13 (divisor), but we still have a remainder of 11.
On the other hand, factors are divisors that can divide a number exactly or cannot result in any remainder. For that reason, the Greatest Common Factor (GCF) of the pair of numbers is commonly used to verify whether they are relatively prime to each other. Furthermore, you may notice that we can more quickly check if they are co-primes or not using only the factors rather than with divisors.
However, this does not mean that idea of GCD is not useful. As a matter of fact, this notation is widely used in real-life applications such as network security.
In a nutshell, for this topic, you can expect that there will be no negative numbers involved. Also, the term Greatest Common Factor will be used to verify if a pair of numbers are relatively prime or not.
Examples of co-prime numbers
Example 1
7 and 11
For this situation, it is easier to visualize the factors by making a factor tree for each one of them so that we can list them later.
With these visualizations, we can now list their factors.
7 = {1, 7}
11 = {1, 11}
Looking at the list, we can notice that they have 1 as their Greatest Common Factor or GCF.
7 = {1, 7}
11 = {1, 11}
Therefore, 7 and 11 are relatively prime or co-prime numbers. Also, 7 and 11 are both prime numbers, how about a pair composite and prime numbers? Let’s see in the next example.
Example 2
6 and 13
Here, we have a composite (6) and a prime (13) number. Again, let’s create a factor tree to list their factors later.
Now, we can list out the factors.
6 = {1, 2, 3, 6}
13 = {1, 13}
Here, we can notice that both of the numbers have the GCF of 1.
6 = {1, 2, 3, 6}
13 = {1, 13}
Hence 6, even though a composite number, is relatively prime to 13 which is a prime number. How about if we have a pair of composite numbers? Let’s try it in the next example.
Example 3
(15, 20)
For this case, let’s try it without using a factor tree, and just list the factors.
15 = {1, 3, 5, 15}
20 = {1, 2, 4, 5, 10, 20}
By looking at the list, we can see that they have 1 as a common factor, but they have 5 as well.
15 = {1, 3, 5, 15}
20 = {1, 2, 4, 5, 10, 20}
This means that the Greatest Common Factor of 15 and 20 is 5 and not 1. Therefore, 15 and 20 are NOT co-prime numbers. However, this does not actually mean that all pairs of composite numbers are not co-prime. Let’s prove it in the next example.
Example 4
(8, 9)
8 = {1, 2, 4, 8}
9 = {1, 3, 9}
Here, we can see that even though they are both composite numbers, they have 1 as their GCF.
8 = {1, 2, 4, 8}
9 = {1, 3, 9}
Therefore, 8 and 9 are co-prime numbers.
Properties of co-prime numbers
From the examples we discussed, we realized the properties of co-prime numbers.
Property 1:
Any pair of prime numbers are relatively prime to each other.
Since prime numbers only have 1 and themselves as the factors, it is automatic that their Greatest Common Factor (GCF) is 1.
Examples: (7, 11), (2, 5), and (3, 7)
Property 2:
Any two consecutive numbers are co-prime.
Since these numbers are just next to each other, their GCF would also be 1 by default.
Examples: (3, 4), (19, 20), and (99, 100)
Property 3:
Two composite numbers can be co-prime, as long as they share no factor other than 1. Two even numbers are never co-prime (both have the factor 2), and numbers that are both multiples of the same number (other than 1) are not co-prime.
Examples: (4, 15) 🗸 (both composite, but GCF is 1)
(6, 12) ✕ (since they are even numbers)
(15, 20) ✕ (since they are both multiples of 5)
Property 4:
The Least Common Multiple or LCM of co-prime numbers is their product.
Example 1
(4, 15)
4 × 15 = 60
To prove this, we can list out each of their multiples.
4 = {4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, …}
15 = {15, 30, 45, 60, 75, 90, 105, …}
Therefore, (4, 15) are relatively prime or co-prime numbers.
Example 2
(6, 12)
6 × 12 = 72
Again, let us list their multiples.
6 = {6, 12, 18, 24, 30, 36, 42, 48, 54, 60, 66, 72,…}
12 = {12, 24, 36, 48, 60, 72, …}
Here, 72 is a common multiple, but the least common multiple is 12, which is smaller than the product 72.
6 = {6, 12, 18, 24, 30, 36, 42, 48, 54, 60, 66, 72,…}
12 = {12, 24, 36, 48, 60, 72, …}
Hence, (6, 12) are not co-prime numbers.
For this reason, if the numbers are not consecutive, getting the product of the pair of numbers and checking if it is their LCM would also be a good trick to verify quickly whether they are co-prime numbers.
Co-prime numbers from 1 to 100
For you to be familiar with Co-prime Numbers, let us explore the pairs of them from 1-100. There are several co-prime numbers within this range, including the pairs that are consecutive or next to each other. Here are some of them.
GCF(8, 9) = 1, so 8 and 9 are co-prime. LCM = 8 × 9 = 72.
| Number | Co-prime with (GCF = 1) |
|---|---|
| 1 | 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 |
| 2 | 3, 5, 7, 9, 11, 13, 15, 17, 19, 21 |
| 3 | 4, 5, 7, 8, 10, 11, 13, 14, 16, 17 |
| 4 | 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 |
| 5 | 6, 7, 8, 9, 11, 12, 13, 14, 16, 17 |
| 6 | 7, 11, 13, 17, 19, 23, 25, 29, 31, 35 |
| 7 | 8, 9, 10, 11, 12, 13, 15, 16, 17, 18 |
| 8 | 9, 11, 13, 15, 17, 19, 21, 23, 25, 27 |
| 9 | 10, 11, 13, 14, 16, 17, 19, 20, 22, 23 |
| 10 | 11, 13, 17, 19, 21, 23, 27, 29, 31, 33 |
| 11 | 12, 40, 58, 76, 94 |
| 12 | 13, 41, 53, 67, 83 |
| 13 | 14, 20, 28, 36, 44 |
| 14 | 15, 23, 29, 37, 41 |
| 15 | 16, 31, 41, 47, 64 |
| 16 | 17, 21, 45, 69, 93 |
| 17 | 18, 53, 64, 75, 86 |
| 18 | 19, 35, 47, 59, 71 |
| 19 | 20, 32, 50, 89, 96 |
| 20 | 21, 33, 41, 49, 57 |
| 21 | 22, 40, 52, 64, 76, 88 |
| 22 | 23, 51, 67, 83 |
| 23 | 24, 44, 50, 56, 62, 68, 74, 80 |
| 24 | 25, 41, 55, 71, 89 |
| 25 | 26, 42, 54, 66, 78, 91 |
| 26 | 27, 43, 57, 71, 85, 99 |
| 27 | 28, 32, 43, 65, 76, 98 |
| 28 | 29, 59, 67, 75, 83 |
| 29 | 30, 32, 35, 49, 52, 69, 86, 88 |
| 30 | 31, 37, 49, 67, 89, 91 |
| 31 | 32, 40, 48, 56, 64 |
| 32 | 33, 47, 61, 77, 89 |
| 33 | 34, 53, 68, 85, 92 |
| 34 | 35, 41, 47, 53, 59 |
| 35 | 36, 52, 68, 86, 99 |
| 36 | 37, 49, 61, 73, 85 |
| 37 | 38, 60, 73, 82, 90 |
| 38 | 39, 41, 43, 45, 47 |
| 39 | 40, 50, 61, 70, 80 |
| 40 | 41, 57, 63, 81, 93 |
| 50 | 51 |
| 51 | 52 |
| 52 | 53 |
| 53 | 54 |
| 54 | 55 |
| 55 | 56 |
| 56 | 57 |
| 57 | 58 |
| 58 | 59 |
| 59 | 60 |
| 60 | 73 |
| 61 | 50 |
| 62 | 77 |
| 63 | 80 |
| 64 | 73 |
| 65 | 89 |
| 66 | 67 |
| 67 | 82 |
| 68 | 95 |
| 69 | 70 |
| 70 | 89 |
| 71 | 82 |
| 72 | 101 |
| 73 | 85 |
| 74 | 87 |
| 75 | 82 |
| 76 | 83 |
| 77 | 78 |
| 78 | 85 |
| 79 | 80 |
| 80 | 83 |
| 81 | 91 |
| 82 | 95 |
| 83 | 97 |
| 84 | 95 |
| 85 | 98 |
| 86 | 93 |
| 87 | 97 |
| 88 | 91 |
| 89 | 99 |
| 90 | 91 |
| 91 | 92 |
| 92 | 93 |
| 93 | 94 |
| 94 | 95 |
| 95 | 96 |
| 96 | 97 |
| 97 | 98 |
| 98 | 99 |
| 99 | 100 |
Co-prime numbers activity
Now, let’s have some exercises for you to identify whether the pair in the first column is co-prime or not.
Directions: List in the second column the factors of each pair of the numbers from the first column. Then, write the Greatest Common Factor or GCF of each pair in the third column. In the fourth column, write Yes if the pair is co-prime and No if it is not. Lastly, write the reason (referencing the Properties of Co-prime Numbers) for your answers from the fourth column to the fifth column. The first row serves as an example.
| Pair | Factors | Greatest Common Factor | Co-prime? | Why? |
|---|---|---|---|---|
(19, 20) | 19 = {1, 19}20 = {1, 2, 4, 5, 10, 20} | 1 | Yes | They are consecutive numbers. |
(6, 24) | ||||
(7, 27) | ||||
(3, 33) | ||||
(10, 81) | ||||
(49, 63) | ||||
(56, 57) | ||||
(4, 9) | ||||
(88, 99) |
(2, 21) | ||||
(5, 17) |
Solution for the Activity:
| Pair | Factors | Greatest Common Factor | Co-prime? | Why? |
|---|---|---|---|---|
(19,20) | 19 = {1, 19}20 = {1, 2, 4, 5, 10, 20} | 1 | Yes | They are consecutive numbers. |
(6, 24) | 6 = {1, 2, 3, 6}24 = {1, 2, 4, 6, 12, 24} | 6 | No | They are both even numbers. |
(7, 27) | 7 = {1, 7}27 = {1, 3, 9, 27} | 1 | Yes | Their GCF is 1. |
(3, 33) | 3 = {1, 3}33 = {1, 3, 11, 33} | 3 | No | Both are multiples of 3, which makes 3 also as their GCF. |
(10, 81) | 10 = {1, 2, 5, 10}81 = {1, 3, 9, 27, 81} | 1 | Yes | Both are composite, but they share no factor other than 1. |
(49, 63) | 49 = {1, 7, 49}63 = {1, 3, 7, 9, 21, 63} | 7 | No | Both are multiples of 7, which makes 7 also as their GCF. |
(56, 57) | 56 = {1, 2, 4, 7, 8, 14, 28, 56}57 = {1, 3, 19, 57} | 1 | Yes | They are consecutive numbers. |
(4, 9) | 4 = {1, 2, 4}9 = {1, 3, 9} | 1 | Yes | Both are composite, but they share no factor other than 1. |
(88, 99) | 88 = {1, 2, 4, 8, 11, 22, 44, 88} 99 = {1, 3, 9, 11, 33, 99} | 11 | No | Both are multiples of 11, which makes 11 also as their GCF. |
(2, 21) | 2 = {1, 2}21 = {1, 3, 7, 21} | 1 | Yes | Their product is 42 which is also their Least Common Multiple. |
(5, 17) | 5 = {1, 5}17 = {1, 17} | 1 | Yes | They are both prime numbers. |
Where are co-prime numbers used?
So, we mastered the knowledge of co-prime numbers. But, what are their purposes? In reality, there are many uses of relatively prime numbers, but here are common applications.
- Cryptography and Cybersecurity
Imagine that you forgot your password in your online bank account, and you hit the “Forgot Password” button to demand a code. After a few seconds, the bank sent you a code to your email address or phone number, a code that only you and the bank know. Of course, you do not want anyone to hack your account so you changed again your password and made sure that it is well-secured. But how will the bank have access to your account with security measures? Also, keep in mind that each character of your password is actually represented by numbers to encrypt it for the sake of security. Well, this is when decryption of your password enters and one of those steps is finding the co-prime of a number that represents one of the characters of your passwords. With that process, the bank can now have access to your account without any security breach and also, hackers.
- Mechanical Engineering
The concept of relatively prime numbers is well used by engineers especially in contacting gears. Keep in mind that gears must function without any damage. And to do that, the number of teeth of the two gears should be relatively prime so that they will not be rubbing in each other which can result in dismantling. For instance, a pair of gears with teeth of 30 and 35 is considered poor, because the second gear may hit some teeth of the first gear. While having co-prime numbers of teeth such as 31 and 35 is considered excellent.
Key facts and summary
- Co-prime or relatively prime numbers are a pair of numbers that has only 1 as the Greatest Common Factor or GCF.
- In number theory, co-prime numbers are notated as GCD (a, b) = 1.
- The term divisors is pertaining to all numbers that can divide a number but can have a remainder. On the other hand, factors are referring to the divisors that can divide a number exactly.
- Relatively prime or co-prime numbers have unique properties:
- All pairs of prime numbers are relatively prime.
- Consecutive numbers are co-prime by default.
- Pair of even numbers and numbers that are multiples of the same number are not co-prime.
- The product of co-prime numbers must also be their Least Common Multiple or LCM.
- There are many co-prime pairs from 1 to 100 (any two consecutive numbers, any two different primes, and more).
- There are many ways co-prime numbers can be applied to our daily lives.
More practice: Multiples of 7, LCM: Least Common Multiple Earth Day Themed worksheets, Prime and Composite Numbers worksheets and Prime Numbers Diwali Themed worksheets.
Co-prime numbers FAQs
What are co-prime numbers?
Two numbers whose greatest common factor is 1, so they share no factor except 1. Examples: 8 and 9, 4 and 15, 7 and 11.
Do co-prime numbers have to be prime?
No. 8 and 9 are both composite and still co-prime. What matters is that they have no common factor other than 1.
Are 1 and any number co-prime?
Yes. The only factor of 1 is 1, so the GCF of 1 and any number is 1.
Are two even numbers ever co-prime?
No. Every even number has 2 as a factor, so two even numbers always share the factor 2.
Are consecutive numbers always co-prime?
Yes. Any number that divides both n and n + 1 would also divide their difference, 1, so the only common factor is 1.
How do you check if two numbers are co-prime?
Find their GCF, either by listing factors or with the Euclidean algorithm (keep dividing and taking remainders). If the GCF is 1, they are co-prime.
What is the LCM of two co-prime numbers?
Their product. For 4 and 15, LCM = 4 × 15 = 60.
Are 6 and 9 co-prime?
No. Both are divisible by 3, so their GCF is 3.









