is-known-mersenne
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5414
58