Last chance! 50% off unlimited learning
Sale ends in
GCD(..., na.rm = FALSE)
LCM(..., na.rm = FALSE)
x
will be computed (the multiple GCD).Factorize
, Primes
GCD(12, 10)
GCD(46368, 75025) # Fibonacci numbers are relatively prime to each other
LCM(12, 10)
LCM(c(46368, 75025)) # = 46368 * 75025
# all elements will be flattened by unlist
GCD(2, 3, c(5, 7) * 11)
GCD(c(2*3, 3*5, 5*7))
LCM(c(2, 3, 5, 7) * 11)
LCM(2*3, 3*5, 5*7)
Run the code above in your browser using DataLab