A function that deterministically checks if a number is prime.
npm install crypto-prime-test
import isPrime from 'crypto-prime-test';
// Let's check if a number is prime for sure, deterministically
isPrime ( 465207927154668043n ); // => true
isPrime ( 465207927154668041n ); // => false
MIT © Fabio Spampinato