The factor
command prints the prime factors of each specified integer NUMBER
. If none are specified on the command line, it will read them from the standard input.
$ factor [NUMBER]...
OR:
$ factor OPTION
Option | Description |
---|---|
--help |
Display this a help message and exit. |
--version |
Output version information and exit. |
- Print prime factors of a prime number.
$ factor 50
- Print prime factors of a non-prime number.
$ factor 75