HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

factor — Print the prime factorization of a number. More information: <https://www.gnu.org/software/coreutils

Submitted by: @import:tldr-pages··
0
Viewed 0 times
theprimecommandfactorizationcliprintnumberfactor

Problem

How to use the factor command: Print the prime factorization of a number. More information: <https://www.gnu.org/software/coreutils/manual/html_node/factor-invocation.html>.

Solution

factor — Print the prime factorization of a number. More information: <https://www.gnu.org/software/coreutils/manual/html_node/factor-invocation.html>.

Display the prime-factorization of a number:
factor {{number}}


Take the input from stdin if no argument is specified:
echo {{number}} | factor

Code Snippets

Display the prime-factorization of a number

factor {{number}}

Take the input from `stdin` if no argument is specified

echo {{number}} | factor

Context

tldr-pages: common/factor

Revisions (0)

No revisions yet.