A Rust rewrite of the well-known factor
command.
Clone the repository, navigate to the project directory, and build, and install the executable:
$ git clone https://github.com/walker84837/factorflow-rs.git
$ cd factorflow-rs
$ cargo build --release
factorflow [OPTIONS] <numbers>...
numbers
: The list of numbers to factorise.
Options:
-h, --exponents
: Print repeated factors in the form p^e unless e is 1.-p
: Print only the prime factors.-l
: Print the GCD and LCM of the numbers.
$ factorflow 36
36: 2 2 3 3
$ factorflow -l 36 48 72
LCM: 144
GCD: 12
$ factorflow -h 72 36
72: 2^3 3^2
36: 2^2 3^2
If you encounter any issues or have questions, please feel free to open an issue.
Contributions are welcome!
- Author: walker84837 - Sole mantainer (for now)
This project is dual-licensed under Apache 2.0 or MIT licenses.
Development is active, and contributions are welcome. If you are interested in contributing, please reach out.