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.

Details

  • The ni can be Gaussian integers.

Examples

open allclose all

Basic Examples  (1)

8, 9, and 11 are relatively prime:

In[1]:=
Click for copyable input
Out[1]=

Scope  (2)

Generalizations & Extensions  (1)

Applications  (3)

Neat Examples  (2)

See Also

Divisible  GCD  Mod  PrimeQ  EulerPhi

Tutorials

Introduced in 2007
(6.0)