Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 391 Bytes

readme.md

File metadata and controls

24 lines (15 loc) · 391 Bytes

Crypto Prime Test

A function that deterministically checks if a number is prime.

Install

npm install crypto-prime-test

Usage

import isPrime from 'crypto-prime-test';

// Let's check if a number is prime for sure, deterministically

isPrime ( 465207927154668043n ); // => true
isPrime ( 465207927154668041n ); // => false

License

MIT © Fabio Spampinato