1.0.0 • Published 10 years ago
is-coprime v1.0.0
is-coprime 
Check if two integers are coprime.
Two integers are said to be relatively prime, mutually prime, or coprime if the only positive integer that evenly divides both of them is 1.
Install
$ npm install --save is-coprimeUsage
var isCoprime = require('is-coprime');
isCoprime(2, 5);
//=> true
isCoprime(12, 21);
//=> falseLicense
MIT © Andreas Gillström
1.0.0
10 years ago