Check if number is prime using only RegExp!
https://iluxonchik.github.io/regular-expression-check-if-number-is-prime/
Get the package via NPM: npm install primexpr
.
const isPrime = require('primexpr');
const PRIME = 10007;
console.log(isPrime(PRIME)); //true
const NOT_PRIME = 6;
console.log(isPrime(NOT_PRIME)); //false
😂