Relatively Prime Calculator
Enter whole numbers to test whether they are coprime.
2 to 10 whole numbers of 1 or more, separated by commas.
Try
Result
You entered
Greatest common divisor
Least common multiple
Show the work
Coprime numbers share no prime factor
Numbers are relatively prime (coprime) when no whole number bigger than 1 divides all of them, which means their greatest common divisor is 1.
Using
Greatest common divisor of the whole list
Find the gcd of the first two numbers, then the gcd of that result with the next number, and so on down the list.
Pairwise coprime means every pair is coprime
The list can have gcd 1 as a whole and still have a pair of numbers that share a factor. Numbers are pairwise coprime when every pair has gcd 1.
Result
Mutually coprime (gcd 1), but not pairwise coprime.