factors(1f) - [NUMBERS] display prime factors of numbers (LICENSE:PD)
Synopsis
Description
Options
Examples
Author
License
factors [NUMBER]... factors -start N -end M
Print the prime factors of each specified integer NUMBER. If none are specified on the command line, read them from standard input.Typically, the numbers must be positive integers where
2 <= NUMBER <= (2**31)-1 or 2147483647.
-start N if specified factor a range of numbers starting with this value. If -end is specified defaults to 2. -end M if specified factor a range of numbers ending with this value. If -start is specified defaults to huge(0). --help display this help and exit --version output version information and exit --verbose verbose output
Sample Usage:
factors 512 512: 2 2 2 2 2 2 2 2 2factors 512 -verbose 512 factors as (2**9)
factors 202023 2147483647 -verbose 202023 factors as (3**2)*22447 2147483647 IS A PRIME NUMBER
factors -start 2 -end 12 -verbose 2 IS A PRIME NUMBER 3 IS A PRIME NUMBER 4 factors as (2**2) 5 IS A PRIME NUMBER 6 factors as 2*3 7 IS A PRIME NUMBER 8 factors as (2**3) 9 factors as (3**2) 10 factors as 2*5 11 IS A PRIME NUMBER 12 factors as (2**2)*3
John S. Urban
Public Domain
Nemo Release 3.1 | factors (1) | February 23, 2025 |