Algorithms
Mathematics
function prime_checker(e){return!(e<=1)&& [...Array(Math.ceil(Math.sqrt(e))).keys()].slice(2).every(r=>e%r)}
function prime_checker(n) {return n <= 1 ? false : [...Array(Math.ceil(Math.sqrt(n))).keys()].slice(2).every((v) => n % v);};- function prime_checker(e){return!(e<=1)&&
- [...Array(Math.ceil(Math.sqrt(e))).keys()].slice(2).every(r=>e%r)}