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