Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

miller-rabin

Package Overview
Dependencies
Maintainers
1
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

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8M
increased by2.3%
Maintainers
1
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 07 Nov 2014

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