pryme

1.0.9 • Public • Published

Pryme

Check if a number is prime

Pryme uses the optimizations documented here.

Install

npm i pryme

Usage

let isPrime = pryme(101) // true

Example

import pryme from 'pryme'

let isPrime = pryme(1000000000001003)
console.log(isPrime) // true

CLI

Install

npm i pryme -g

Usage

$ pryme 1
1 is prime? false
pryme > 101
101 is prime? true
pryme > // wait for new input

Licence

MIT

Readme

Keywords

Package Sidebar

Install

npm i pryme

Weekly Downloads

1

Version

1.0.9

License

MIT

Unpacked Size

3.23 kB

Total Files

6

Last publish

Collaborators

  • draeder