Function eb_prime_factor::main [−][src]
pub(crate) fn main() -> Result<(), Error>
Calculate and display prime factors
The main function collects the user input from invocation, using clap. Input is converted to a u64 and passed to prime_factors. Output is parsed back to a string containing a space-separated list of numbers, then written to std::io::stdout.