Coprimality
Coprimality, or relative primality, is a relation between integers. Two integers a and b are coprime if their greatest common divisor gcd(a,b) equals 1. Equivalently, they have no common positive divisor greater than 1. The notion extends to negative integers by using absolute values: gcd(a,b)=gcd(|a|,|b|). If either number is zero, gcd(a,0)=|a|, so a is coprime with 0 only when |a|=1.
Equivalent characterizations include that a and b have disjoint prime factorizations; no prime divides both; and
Important consequences include Bezout's identity: if gcd(a,b)=1, there exist integers x and y with ax+by=1. This
Examples help illustrate: gcd(6,35)=1, so 6 and 35 are coprime; gcd(6,15)=3, not coprime. With zero: gcd(1,0)=1, so
Several related ideas appear in number theory. The probability that two randomly chosen integers are coprime