Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.24 KB

File metadata and controls

39 lines (26 loc) · 1.24 KB

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.