Algosim documentation: coprime

coprime

Returns true iff its arguments are coprime.

Syntax

Description

coprime(m, n) is true iff m and n are relatively prime, that is, if their greatest common divisor is 1.

Notes

Instead of using the coprime function, you may use the operator.

Examples

coprime(5714202, 6302235)
false
coprime(5714203, 6302235)
true

See also