Skip to content

A function that deterministically checks if a number is prime.

License

Notifications You must be signed in to change notification settings

fabiospampinato/crypto-prime-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A function that deterministically checks if a number is prime.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published