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