# is-coprime

> Check if two integers are coprime.

Latest version **1.0.0** (published 2015-07-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-coprime
pnpm add is-coprime
yarn add is-coprime
bun add is-coprime
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-07-18 |
| First published | 2015-07-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Andreas Gillström |
| Maintainers | gillstrom |
| Keywords | check, coprime, math, mutually, prime, relatively, test |

## Links

- npm: https://www.npmjs.com/package/is-coprime
- Repository: https://github.com/gillstrom/is-coprime
- Homepage: https://github.com/gillstrom/is-coprime#readme
- Issues: https://github.com/gillstrom/is-coprime/issues
- npm.io page: https://npm.io/package/is-coprime

## Dependencies (1)

- [gcd](https://npm.io/package/gcd.md) ^0.0.1

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-07-18

## README

# is-coprime [![Build Status](https://travis-ci.org/gillstrom/is-coprime.svg?branch=master)](https://travis-ci.org/gillstrom/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-coprime
```


## Usage

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

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

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


## License

MIT © [Andreas Gillström](http://github.com/gillstrom)

---
_Source: https://npm.io/package/is-coprime · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
