Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prosen-ghosh/prime-sieve
An implementation of the sieve of Eratosthenes to check prime numbers.
https://github.com/prosen-ghosh/prime-sieve
algorithm eratosthenes npm npm-package primesieve sieve
Last synced: about 2 months ago
JSON representation
An implementation of the sieve of Eratosthenes to check prime numbers.
- Host: GitHub
- URL: https://github.com/prosen-ghosh/prime-sieve
- Owner: Prosen-Ghosh
- License: mit
- Archived: true
- Created: 2017-10-16T10:45:50.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-16T11:21:47.000Z (about 7 years ago)
- Last Synced: 2024-09-28T15:43:40.141Z (about 2 months ago)
- Topics: algorithm, eratosthenes, npm, npm-package, primesieve, sieve
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# prime-sieve
An implementation of the sieve of Eratosthenes to check prime numbers.![npm](https://img.shields.io/npm/v/prime-sieve.svg) ![license](https://img.shields.io/npm/l/prime-sieve.svg) ![github-issues](https://img.shields.io/github/issues/Prosen-Ghosh/prime-sieve.svg)
![travis-status](https://img.shields.io/travis/Prosen-Ghosh/prime-sieve.svg)
![stars](https://img.shields.io/github/stars/Prosen-Ghosh/prime-sieve.svg)
![forks](https://img.shields.io/github/forks/Prosen-Ghosh/prime-sieve.svg)## Features
## Install
`npm install --save prime-sieve`
## Usage
```js
const isPrime = require('prime-sieve');
isPrime(2);
//=> trueisPrime(20254654641);
//=> falseisPrime(99999999944441);
//=> true```
## Author
Prosen Ghosh (https://bd.linkedin.com/in/prosen-ghosh-baba9aa8)
## License
- **MIT**