Calculator Scope

Calculator Scope - Smart Online Calculators for Everything

From math, science, finance, health, and construction to marketing, text tools, developer utilities, and more. All calculators in one fast, accurate, easy-to-use platform.

Coprime (Relatively Prime) Checker

Coprime (Relatively Prime) Checker

Result
Calculator Scope
Advertisement 1
Advertisement 2
This calculator finds the greatest common divisor of two numbers — if it's 1, the numbers are coprime, e.g. 8 and 15 are coprime.

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.

Advertisement 3
  • 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.