You read a problem that says "let a and b be coprime," you pattern-match on the sound of the word, and your brain quietly substitutes "let a and b be prime." Then the whole solution goes sideways. This is one of the most common vocabulary traps in early number theory, and it is worth spending a few minutes killing the confusion permanently.

Coprime (also called relatively prime or mutually prime) is a property of two numbers considered together. Prime is a property of one number on its own. They are different kinds of statements about different kinds of objects. Mistaking one for the other is like mistaking "tall" (a property of a person) for "taller than" (a relationship between two people).

The definitions side by side

Prime

An integer p > 1 is prime if its only positive divisors are 1 and p itself.

Coprime

Two integers a and b are coprime if \gcd(a, b) = 1 — that is, they share no positive common divisor other than 1.

Read the first definition: the input is a single number. You either are or are not prime.

Read the second: the input is a pair of numbers. The question "is 8 coprime?" is not even well-formed — coprime to what?

The sharpest example

Take a = 8 and b = 9.

Two composite numbers, coprime to each other. This example alone proves the two concepts live in different universes.

Why the names sound so similar

The word coprime was chosen because of a useful fact: if a and b are coprime, they behave like primes toward each other in the arithmetic identity

\gcd(a, b) \cdot \operatorname{lcm}(a, b) = a \cdot b.

When \gcd(a, b) = 1, this collapses to \operatorname{lcm}(a, b) = a \cdot b. So coprime numbers multiply together cleanly, with no overlap to subtract out — exactly the way two distinct primes would. The prefix "co-" is the Latin root meaning "together" or "jointly"; coprime means "prime with respect to each other," not "each one individually prime."

A quick Venn picture

Imagine the prime factors of a number as marbles in a bag. The prime factors of 8 are three marbles all coloured "2." The prime factors of 9 are two marbles all coloured "3."

Coprime as non-overlapping prime factor setsTwo overlapping circles labelled 8 and 9. The left circle contains three copies of 2. The right circle contains two copies of 3. The overlap is labelled empty with a red check mark. A note reads: gcd equals 1, so the numbers are coprime even though neither is prime. 8 = 2³ 9 = 3² 2 2 2 3 3 no shared primes gcd(8, 9) = 1 → coprime, but neither is prime
The left bag holds the primes of $8$ (three $2$s). The right holds the primes of $9$ (two $3$s). The overlap is empty — that is coprimality. Whether the bags themselves contain a single marble (prime) or many (composite) is a completely separate question.

Two numbers are coprime exactly when their bags share no colour. Two numbers are prime when each bag contains exactly one marble.

Try the definitions live

Drag $a$ and $b$ between $2$ and $60$. The visualiser factorises each number live, computes $\gcd(a, b)$ by the Euclidean algorithm, and tells you which of the two properties (prime, coprime) each side has. Try $(8, 9)$, $(12, 25)$, $(7, 11)$, $(12, 18)$ — all four combinations of the table appear.

The logical relationships

There are four combinations of "each number prime" and "pair coprime." All four can happen.

Each number prime? Pair coprime? Example
Yes Yes \{2, 3\}, \{7, 11\} — any two distinct primes
Yes No \{5, 5\} — same prime twice, \gcd = 5
No Yes \{8, 9\}, \{4, 25\} — composites with disjoint prime supports
No No \{12, 18\}, \{6, 10\} — composites that share a prime

The only implication that holds is the first row's shape: two distinct primes are always coprime. That one is genuine. But notice it says "two distinct primes" — the coprime conclusion is about the pair, not about either number individually.

Why the distinction matters in practice

Many theorems in number theory have the hypothesis "a and b are coprime" — and misreading it as "a and b are prime" loses most of the theorem's applications.

In all three, replacing "coprime" with "prime" would make the theorem nearly useless.

The mental model that fixes this forever

When you hear the word "prime," think one number, one question: does it break into smaller factors?

When you hear "coprime," think two numbers, one question: do they share any prime factor?

The two questions have no logical connection to each other. Keep them in separate drawers of your mind, and the confusion stops.

Related: Number Theory Basics · Why is 1 Not a Prime Number? · Bézout's Identity — Drag u and v to Hit the GCD · Divisibility Tree — A Number's Prime Atoms · Modular Arithmetic