🚀 Socket Launch Week Day 4:Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection.Learn more
Sign In

crypto-miller-rabin

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crypto-miller-rabin

Implementation of the Miller-Rabin primality test.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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

Keywords

crypto

FAQs

Package last updated on 14 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts