Prosen-Ghosh / prime-sieve

An implementation of the sieve of Eratosthenes to check prime numbers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

prime-sieve

An implementation of the sieve of Eratosthenes to check prime numbers.

npm license github-issues

travis-status stars forks

Features

Install

npm install --save prime-sieve

Usage

const isPrime = require('prime-sieve');

isPrime(2);
//=> true

isPrime(20254654641);
//=> false

isPrime(99999999944441);
//=> true

Author

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

License

  • MIT

About

An implementation of the sieve of Eratosthenes to check prime numbers.

License:MIT License


Languages

Language:JavaScript 100.0%