Socket
Socket
Sign inDemoInstall

miller-rabin

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

miller-rabin

Miller Rabin algorithm for primality test


Version published
Weekly downloads
8.2M
increased by1.59%
Maintainers
2
Weekly downloads
 
Created

What is miller-rabin?

The miller-rabin npm package is a JavaScript implementation of the Miller-Rabin probabilistic primality test. This package is used to determine whether a given number is a probable prime. It is particularly useful in cryptographic applications where large prime numbers are required.

What are miller-rabin's main functionalities?

Primality Testing

This feature allows users to test if a number is a probable prime using the Miller-Rabin test. The example shows how to test if the number 17 is a probable prime.

const MillerRabin = require('miller-rabin');
const mr = new MillerRabin();
const probablePrime = mr.test(BigInt(17));
console.log(probablePrime); // outputs true

Other packages similar to miller-rabin

Keywords

FAQs

Package last updated on 28 Oct 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc