Scroll to navigation

FACTOR(1) General Commands Manual FACTOR(1)

NAME

factor - Print the prime factors of the given NUMBER(s). If none are specified, read from standard input.

SYNOPSIS

factor [-h|--exponents] [--help] [-V|--version] [NUMBER]

DESCRIPTION

Print the prime factors of the given NUMBER(s). If none are specified, read from standard input.

OPTIONS

Print factors in the form p^e
Print help information.
Print version
[NUMBER]

VERSION

v(uutils coreutils) 0.9.0

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 <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail.

2026-06-04