Name
factor
Synopsis
factor [options
]n
Calculate and display the prime factors of number n, which must be a positive integer. If n is not specified, numbers are read from standard input, separated by commas, spaces, or tabs.
Options
- --help
Display help information.
- --version
Display version information.
Example:
user@systemname:˜> factor 60
60: 2, 2, 3 5
Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.