# pairwise relatively prime

A list of integers is pairwise relatively prime if *every pair* of the
items in the list are relatively prime. For example,
the integers 121, 122, and 123 are pairwise relatively prime (even though they are each composite).

If two integers have greatest common divisor one,
then they are pairwise relatively prime (since there is only one pair). This happens over 60% of the time (6/π^{2}).

The list of integers involved may even be infinite! For example, the set of all Fermat numbers is pairwise relatively prime, as is the set of all Mersenne numbers with prime exponents. This fact is sometimes used to prove the number of primes is infinite.

**See Also:** GCD, MutuallyRelativelyPrime

**Related pages** (outside of this work)

Printed from the PrimePages <t5k.org> © Reginald McLean.