factor
v0.0.28
factor [OPTION]... [NUMBER]...
Print the prime factors of the given NUMBER(s). If none are specified, read from standard input.
Options
--exponents
,-h
-
Print factors in the form p^e
--help
-
Print help information.
Examples
Display the prime-factorization of a number:
factor {{number}}
Take the input from stdin
if no argument is specified:
echo {{number}} | factor
The examples are provided by the tldr-pages project under the CC BY 4.0 License.
Please note that, as uutils is a work in progress, some examples might fail.