crypto-miller-rabin
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Crypto Miller-Rabin

Implementation of the Miller-Rabin primality test.

Install

npm install crypto-miller-rabin

Usage

import isProbablyPrime from 'crypto-miller-rabin';

// Let's check if a bigint is probably prime, performing 30 rounds of Miller-Rabin tests

isProbablyPrime ( 428619803581219889005329334991561182527277683715078274359377824192296037302435017260422513n, 30 ); // => true

License

MIT © Fabio Spampinato

Package Sidebar

Install

npm i crypto-miller-rabin

Weekly Downloads

161

Version

1.0.1

License

MIT

Unpacked Size

4.86 kB

Total Files

7

Last publish

Collaborators

  • fabiospampinato