pub fn is_mersenne(prime: usize) -> bool {
    if prime == 2 {
        return true;
    }

    if !primal::is_prime(prime as u64) || prime.is_even() {
        return false;
    }

    return check_mersenne(prime);
}
/// Check if given prime number is a Mersenne prime.
/// Returns true if it is a Mersenne prime and false
/// if the number is not a Mersenne prime, a prime at all
/// or even
/// 
/// # Example
/// 
/// ~~~
/// extern crate lucas_lehmer;
/// use lucas_lehmer::is_mersenne;
///
/// assert!(is_mersenne(19))
/// ~~~
Check if given prime number is a Mersenne prime.
Returns true if it is a Mersenne prime and false
if the number is not a Mersenne prime, a prime at all
or even
Check if given prime number is a Mersenne prime . Returns true if it is a Mersenne prime and false if the number is not a Mersenne prime a prime at all or even
pub fn is_mersenne(prime: usize) -> bool {
    if prime == 2 {
        return true;
    }
    if !primal::is_prime(prime as u64) || prime.is_even() {
        return false;
    }
    return check_mersenne(prime);
}
pub fn is_mersenne ( prime : usize ) -> bool { if prime == 2 { return true ; } if ! primal :: is_prime ( prime as u64 ) || prime . is_even ( ) { return false ; } return check_mersenne ( prime ) ; }
Check if given prime number is a Mersenne prime.
Check if given prime number is a Mersenne prime .
prime
usize
prime
usize
example
~~~
extern crate lucas_lehmer;
use lucas_lehmer::is_mersenne.


~~~ extern crate lucas_lehmer ; use lucas_lehmer :: is_mersenne .