Skip to content

Primality test for Mersenne primes (M_{n}=2^{n}-1)

Notifications You must be signed in to change notification settings

akluth/lucas_lehmer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lucas-lehmer

crate documentation minimum rustc nightly Travis status

Implementation of the Lucas–Lehmer primality test in Rust.

Usage

Add this to your Cargo.toml:

[dependencies]
lucas_lehmer = "0.1.0"

and this to your crate root:

extern crate lucas_lehmer;

Tests

You can run tests by executing cargo test --release. If you want to test a development build omit the --release option, but beware: Testing a debug-build will take much longer. Don't be coconfused if cargo says:

test m11213_is_a_mersenne_number ... test m11213_is_a_mersenne_number has been running for over 60 seconds

The test will continue running.

Compatability

The 'lucas_lehmer' crate requires a nightly build of Rust.

License

Licensed under the terms and conditions of the MIT license license.

Releases

No releases published

Packages

No packages published

Languages