Skip to content
 
 

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

primeupto is an math library for JavaScript and Node.js. It help you to find all prime number.

Version license Fork Star

Features

  • find prime number from 2 to n.
  • find prime number from m to n. // comming soon
  • Can be used in command line as well.
  • Runs on any JavaScript engine.
  • Is easily extensible.
  • Open source.

Usage

primeupto can be used in both node.js and in the browser.

Install primeupto using npm:

npm install primeupto
const {primeupto} = require('primeupto');

console.log(primeupto(5));   // 2,3,5
console.log(primeupto(34));  // 2,3,5,7,11,13,17,19,23,29,31
console.log(primeupto(25));  // 2,3,5,7,11,13,17,19,23
console.log(primeupto(53));  //2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53

See the Getting Started for a more detailed tutorial.

Documentation

Clone the project from github:

git clone https://github.com/letskhabar/primeupto.git
cd primeupto

License

MIT, Copyright (C) 2020

About

primeupto is an math library for JavaScript and Node.js. It help you to find all prime number.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages