powered by
Determine whether two numbers are coprime, i.e. do not have a common prime divisor.
coprime(n,m)
Logical, being TRUE if the numbers are coprime.
integer scalars
Two numbers are coprime iff their greatest common divisor is 1.
GCD
coprime(46368, 75025) # Fibonacci numbers are relatively prime to each other coprime(1001, 1334)
Run the code above in your browser using DataLab