pub trait FactoringEventSubscriptor<T> {
    fn factorized(
        &mut self,
        n: &T,
        primes: &[T],
        composites: &[T],
        unknown: &[T]
    ); fn is_prime(&mut self, n: &T); fn is_composite(&mut self, n: &T); }
Expand description

Observer with callbacks relating to events during the factorization of an integer

Required Methods

Number n has been factorized into parts

Arguments

n: Number which has been factorized primes: Factors of n already known to be prime composites: Factors of n already known to be composite unknown: Factors of n of which primality is unknown so far

Factor n now known to be prime

Factor n now known to be composite

Implementors