Pial
Check if a number is a prime number. Extremely fast; complexity: O(sqrt(n/2))
.
Install
npm install pial
Usage
const pial = ; ;//=> true ;//=> false
Tips
Use mem
to cache the return values.
const mem = ;const pial = ; ;//=> false ; // Cached value//=> false
API
pial(number)
number
Type: number
The number to check.