1.0.3 • Published 1 year ago
prime-checks v1.0.3
prime-checks
Just an example npm lib with isPrime number check.
Installation
Just a basic installation, nothing special
npm i prime-checks
How to use
import { isPrime } from "prime-checks";
console.log(isPrime(59)); // shall return true, as 59 is a prime number
console.log(isPrime(8)); // shall return false, as 8 is not a prime number