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.
$ npm install --save is-coprime
const isCoprime = require('is-coprime');
isCoprime(2, 5);
//=> true
isCoprime(12, 21);
//=> false
MIT © Andreas Gillström