coprime | 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.
GCD
coprime(46368, 75025) # Fibonacci numbers are relatively prime to each other coprime(1001, 1334)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.