Skip to content

A Javascript Implementation of the Lucas-Lehmer Primality Test for Mersenne Primes

Notifications You must be signed in to change notification settings

adamisntdead/lucas-lehmer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lucas-lehmer

NPM version Build Status Codecov Status Standard

A Javascript Implementation of the Lucas-Lehmer Primality Test for Mersenne Primes

Install

npm install --save lucas-lehmer

or

yarn add lucas-lehmer

Usage

import lucasLehmer from 'lucas-lehmer'

lucasLehmer(3) // true, as 2^3 - 1 is prime
lucasLehmer(12) // False, as 2^12 - 1 isn't prime

License

MIT © Adam Kelly

About

A Javascript Implementation of the Lucas-Lehmer Primality Test for Mersenne Primes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published