Module factorisation

Source
Expand description

factorisation.rs

Created by Mitchell Nordine at 05:03AM on May 29, 2014.

Functions§

are_all_factors
Check if all of the queried values are a factor of num.
are_any_factors
Check if any of the queried values are a factor of num.
get_all_factors
Get all factors for ‘n’.
is_factor
Check if the queried value is a factor of num.
is_prime
Is the number prime?
lowest_non_one
Return the lowest non-one factor.