is_coprime: Coprimality check

Description Usage Arguments Value Examples

View source: R/prime.R

Description

Test whether to integers are coprime, that is, have no factors in common

Usage

1
is_coprime(x, y)

Arguments

x, y

integers to be tested for coprimality

Value

A logical vector

Examples

1
2
is_coprime(sequence(10:16), rep(10:16, 10:16))
is_coprime(2*3*5*7, 11*13)

AkselA/R-ymse documentation built on March 21, 2020, 9:52 a.m.