# is-prime

> Test if a number is prime

Latest version **1.0.1** (published 2015-07-05) · MIT license · 0 weekly downloads

## Install

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

## 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.1 |
| Published | 2015-07-05 |
| First published | 2015-07-05 |
| 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 | 3 |
| Author | Leonardo Borges Avelino |
| Maintainers | lborgav |
| Keywords | prime, primality |

## Links

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

## Dependencies (1)

- [number-is-integer](https://npm.io/package/number-is-integer.md) *

## Recent versions

- 1.0.1 (latest) — 2015-07-05

## README

# is-prime [![Build Status](https://travis-ci.org/lborgav/is-prime.svg?branch=master)](https://travis-ci.org/lborgav/is-prime)

> Test if a number is prime


## Install

```
$ npm install --save is-prime
```


## Usage

```js
var isPrime = require('is-prime');

isPrime(2);
//=> true

isPrime(7);
//=> true

isPrime(100);
//=> false
```

## License

MIT © [Leonardo Borges Avelino](http://lborgav.com)

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