Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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);
//=> true

isPrime(20254654641);
//=> false

isPrime(99999999944441);
//=> true

```

## Author

Prosen Ghosh (https://bd.linkedin.com/in/prosen-ghosh-baba9aa8)

## License

- **MIT**