Nepedia
Back to Discover
Fluent Reader
🔢

Coprime integers

math Maturity 11-13 Next article →

Imagine you have two different numbers. You want to see if they share any common factors. A factor is a number that can divide into another number perfectly. If the only number that fits into both is one, they are called coprime. You might also hear people call them relatively prime or mutually prime. This means they do not share any prime numbers as divisors. For example, the numbers eight and nine are coprime. Neither of them is a prime number on its own. However, they are coprime because only one divides both.

coprime-lattice
coprime-lattice

How can we tell if numbers are coprime? One way is to find the greatest common divisor. This is the largest number that divides into both. If that number is one, they are coprime. Mathematicians use a fast method called the Euclidean algorithm to check this. There are even faster versions like the binary GCD algorithm. You can also use Lehmer's GCD algorithm to find the answer. This helps us work with very large numbers quickly.

coprime-lattice
coprime-lattice

Numbers have a long history of being studied this way. In a 1989 textbook, three writers named Ronald Graham, Donald Knuth, and Oren Patashnik suggested a new idea. They proposed using the word "prime" instead of "coprime." They wanted to show that one number is prime to another. This helps make the math language feel more consistent. Many ideas about these numbers come from famous mathematicians like Leonhard Euler. In 1735, Euler solved a famous problem related to these patterns.

Coprime8
Coprime8

We can also look at groups of numbers rather than just two. A set of numbers is coprime if one is the only factor for all of them. For example, six, ten, and fifteen are coprime. This is because only one divides all three numbers. But there is a stronger rule called pairwise coprime. This means every single pair in the group must be coprime. In our group, six and ten are not coprime because they share two.

Coprime8
Coprime8

Coprime numbers are very useful in the real world. Machine designers use them to make gears work better. If gear teeth counts are coprime, the gears wear down evenly. This is helpful for making machines last longer. People also use these numbers to create secret codes. In the past, machines used different loop lengths for keys. Using pairwise coprime lengths helped these machines work best. Even if you pick two numbers at random, they are coprime about 61 percent of the time.

Coprime8
Coprime8
410 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (2)
File:coprime-lattice.svg
coprime-lattice.svg
File:Coprime8.svg
Coprime8.svg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.