@mia-cx/isprime
v0.0.7
Published
yet another isprime package with caching. computes prime numbers using trial division.
Downloads
18
Maintainers
Readme
@mia-cx/isprime
a fairly performant prime checker by @mia-cx
Installation
Using npm:
npm i @mia-cx/isprime
Using pnpm:
pnpm i @mia-cx/isprime
Usage
commonjs
const isPrime = require('@mia-cx/isprime');
console.log(isPrime(45413)); // returns true
esm
import isPrime from "@mia-cx/isprime";
console.log(isPrime(45413)); // returns true