JSPM

is-coprime

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 14
  • Score
    100M100P100Q53536F
  • License MIT

Check if two integers are coprime.

Package Exports

  • is-coprime

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-coprime) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

is-coprime Build Status

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-coprime

Usage

var isCoprime = require('is-coprime');

isCoprime(2, 5);
//=> true

isCoprime(12, 21);
//=> false

License

MIT © Andreas Gillström