coprime {numbers} | R Documentation |
Determine whether two numbers are coprime, i.e. do not have a common prime divisor.
coprime(n,m)
n , m |
integer scalars |
Two numbers are coprime iff their greatest common divisor is 1.
Logical, being TRUE if the numbers are coprime.
coprime(46368, 75025) # Fibonacci numbers are relatively prime to each other
coprime(1001, 1334)