Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

factor

v(uutils coreutils) 0.8.0
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.