Expand description
Integer factorization, primality checking and primality certification
use facto::{Factoring, Primality};
assert_eq!(65u64.factor(), vec![5, 13]);
assert!(13u64.is_prime());
assert!(!14u64.is_prime());
dbg!(101u64.generate_lucas_certificate());Re-exports§
Modules§
Structs§
- Empty
Factoring Event Subscriptor - Stub observer, for when no event callbacks are required
- Lucas
Certificate - The certificate tree for the lucas certificate
- Lucas
Certificate Element - Element of the lucas certificate tree, representing one number
Enums§
- Primality
Certainty - Grade of certainty for primality check
Traits§
- Certified
Factorization - Factorize number while possible updating a lucas certificate
- Factoring
- Factor number into it’s prime factors
- Factoring
Event Subscriptor - Observer with callbacks relating to events during the factorization of an integer
- Primality
- Optimized methods of checking and certifying primality