factor

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

Install

All systems
curl cmd.cat/factor.sh
Debian Debian
apt-get install coreutils
Ubuntu
apt-get install coreutils
Alpine
apk add coreutils
Arch Arch Linux
pacman -S coreutils
image/svg+xml Kali Linux
apt-get install coreutils
CentOS
yum install coreutils
Fedora
dnf install coreutils
Windows (WSL2)
sudo apt-get update sudo apt-get install coreutils
OS X
brew install coreutils
Raspbian
apt-get install coreutils
Docker
docker run cmd.cat/factor factor powered by Commando

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

  • Display the prime-factorization of a number:
    factor number
  • Take the input from `stdin` if no argument is specified:
    echo number | factor

© tl;dr; authors and contributors