snippetbashTip
factor — Print the prime factorization of a number. More information: <https://www.gnu.org/software/coreutils
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}} | factorCode Snippets
Display the prime-factorization of a number
factor {{number}}Take the input from `stdin` if no argument is specified
echo {{number}} | factorContext
tldr-pages: common/factor
Revisions (0)
No revisions yet.