is-prime-es6

1.0.0 • Public • Published

is-prime-es6

What is this package?

This package provides a function to which you may pass any integet and it will return true if the given number is a prime number, false otherwise.

Usage

Using WebPack:

import { isPrime } from "is-prime-es6";

Using native ES6 modules:

import { isPrime } from "./node_modules/is-prime-es6/index.js";

isPrime(7) // true
isPrime(9) // false

Customer feedback

I can't believe I've spent 18 years, 11 months, 3 days, 22 hours and 45 minutes without this package in my life!

Christa Bridges

Readme

Keywords

Package Sidebar

Install

npm i is-prime-es6

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

1.59 kB

Total Files

3

Last publish

Collaborators

  • andyjames