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

is-known-mersenne

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

is-known-mersenne - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

3

package.json
{
"name": "is-known-mersenne",
"version": "1.0.0",
"version": "1.1.0",
"description": "checks if a number is a known mersenne prime",

@@ -27,2 +27,1 @@ "main": "index.js",

}

@@ -5,3 +5,5 @@ # Is Known Mersenne

![openbits logo](https://lh3.googleusercontent.com/z3ETaQ_Xc_uFNIzCCabpoYbl67eUXUSIUWIA1w4dl-RwYz3ZzFGyzBYdui9ZltF9iJNcJxNYPHZpthsJjm1q9GX9rV7SH2s2Kq_BV7zOQTQS70-inB1yvsvQxuvOuDl0E8pLcjWk) This package is also served through OpenBits (http://openbits.world)
### Prerequisites

@@ -23,6 +25,8 @@

Usage
### Usage
Input must be in BigInt format. Simply add n after all integers.
```
const isKnownMersenne = require('is-known-mersenne');
isKnownMersenne(7n); => true

@@ -55,2 +59,2 @@ isKnownMersenne(2n**2n-1n) => true

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details
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