Mathematica > Mathematics and Algorithms > Mathematical Functions > Number Theoretic Functions >

CoprimeQ

CoprimeQ[n1, n2]
yields True if n1 and n2 are relatively prime, and yields False otherwise.
CoprimeQ[n1, n2, ...]
yields True if all pairs of the ni are relatively prime, and yields False otherwise.
  • The ni can be Gaussian integers.
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team