#prime #mersenne #numbers #math #lucas #lehmer

lucas_lehmer

A crate with a primality test for Mersenne primes (M_{n}=2^{n}-1)

1 unstable release

Uses old Rust 2015

0.1.0 Dec 22, 2018

#9 in #mersenne

24 downloads per month

MIT license

4KB

lucas-lehmer

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;

Compatability

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

License

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

Dependencies

~2MB
~36K SLoC