Coprime Checker
Enter two whole numbers to see their GCD and whether they are coprime.
Result
How to use
- Enter your values in the fields above.
- Press Calculate to see your result instantly.
- Use the Share button to copy a link to your result.
About this calculator
Two whole numbers are coprime, or relatively prime, if the only positive integer that divides both of them evenly is 1 — their greatest common divisor (GCD) equals 1, even though neither number individually needs to be prime. This calculator finds that GCD using the Euclidean algorithm, one of the oldest algorithms in mathematics, which repeatedly replaces the larger number with the remainder of dividing it by the smaller until the remainder reaches zero.
Coprimality is a load-bearing concept well beyond number theory homework: RSA public-key cryptography requires choosing an encryption exponent that is coprime with a totient value to guarantee the encryption is mathematically invertible, gear designers deliberately choose coprime tooth counts for meshing gears to spread wear evenly across all tooth combinations rather than repeating the same pairs, and coprime denominators are what let fractions be added by finding a true least common denominator.
Enter two whole numbers and this calculator returns their GCD via the Euclidean algorithm and states whether they are coprime.
Was this helpful?
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)