pub trait Primality: Sized {
fn is_prime(self) -> bool;
fn generate_lucas_certificate(self) -> Option<LucasCertificate<Self>>;
}Expand description
Optimized methods of checking and certifying primality
Required Methods
fn generate_lucas_certificate(self) -> Option<LucasCertificate<Self>>
fn generate_lucas_certificate(self) -> Option<LucasCertificate<Self>>
Generate a lucas certificate, certifying the number’s primality