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: 5 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-16T11:21:47.000Z (over 7 years ago)
- Last Synced: 2025-01-22T04:03:34.189Z (5 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.  


## 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**