Coprime (Relatively Prime) Checker
Coprime (Relatively Prime) Checker
Two numbers are coprime when they share no common factor other than 1 — a relationship that doesn't require either number to be prime itself, since 8 and 15 are both composite yet still coprime. Enter two whole numbers here and this calculator finds their greatest common divisor to check whether they qualify. Coprimality comes up often in simplifying fractions, cryptography, and number theory, wherever it matters whether two numbers have any shared structure.
- Two numbers are coprime (relatively prime) if their greatest common divisor is 1, even if neither number is prime itself — e.g. 8 and 15 are both composite, yet coprime.
- Consecutive integers are always coprime, since any common factor greater than 1 would have to divide their difference of 1.
- This is different from checking if a number itself is prime — coprimality is always a relationship between two numbers, not a property of one.
How do I check if two numbers are coprime?
Find their greatest common divisor (GCD) using the Euclidean algorithm. If the GCD is 1, the numbers are coprime.
Are 8 and 15 coprime?
Yes — the GCD of 8 and 15 is 1, so they share no common factors other than 1.
Coprime (Relatively Prime) Checker


Two numbers are coprime when they share no common factor other than 1 — a relationship that doesn't require either number to be prime itself, since 8 and 15 are both composite yet still coprime. Enter two whole numbers here and this calculator finds their greatest common divisor to check whether they qualify. Coprimality comes up often in simplifying fractions, cryptography, and number theory, wherever it matters whether two numbers have any shared structure.

- Two numbers are coprime (relatively prime) if their greatest common divisor is 1, even if neither number is prime itself — e.g. 8 and 15 are both composite, yet coprime.
- Consecutive integers are always coprime, since any common factor greater than 1 would have to divide their difference of 1.
- This is different from checking if a number itself is prime — coprimality is always a relationship between two numbers, not a property of one.
How do I check if two numbers are coprime?
Find their greatest common divisor (GCD) using the Euclidean algorithm. If the GCD is 1, the numbers are coprime.
Are 8 and 15 coprime?
Yes — the GCD of 8 and 15 is 1, so they share no common factors other than 1.
