Skip to content
Gioi Toan
Start learning
A thick book and a smiling magnifying glass

What is Coprime?

Short answer

Two coprime numbers are two numbers whose greatest common divisor is 1.

Type
Definition
First learned
Grade 6
Also called
hai số nguyên tố cùng nhau, số nguyên tố cùng nhau
In English
coprime, relatively prime

Formulas

ƯCLN(a,b)=1\text{ƯCLN}(a,b)=1

Explanation

Coprime numbers are two integers (usually natural numbers) whose greatest common divisor is 1. That means they have no common divisor other than 1.

For example, 8 and 9 are coprime because GCD(8,9)=1\text{GCD}(8, 9) = 1, even though both are composite numbers. The name "coprime" does not mean that each number must be a prime number.

Coprime numbers often appear when simplifying fractions: a fraction is in simplest form when the numerator and denominator are coprime. Also, two consecutive numbers are always coprime because their GCD is 1.

Examples

Example 1

Check whether 14 and 25 are coprime.

See the solution to example 1

We have 14=2⋅714 = 2 \cdot 7, 25=5225 = 5^2. The two numbers have no common prime factor, so GCD(14,25)=1\text{GCD}(14, 25) = 1. Therefore 14 and 25 are coprime.

Common mix-ups

  • Coprime does not mean that both numbers are prime numbers; for example, 8 and 9 are composite numbers but still coprime.