[UP]


Manual Reference Pages  - factors (1)

NAME

factors(1f) - [NUMBERS] display prime factors of numbers (LICENSE:PD)

CONTENTS

Synopsis
Description
Options
Example
Author
License

SYNOPSIS

factors [NUMBER]... factors -start N -end M

DESCRIPTION

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.

OPTIONS

-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

EXAMPLE

Sample Usage:

  factors 512
  512: 2 2 2 2 2 2 2 2 2

factors 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

AUTHOR

John S. Urban

LICENSE

Public Domain


factors (1) March 11, 2021
Generated by manServer 1.08 from dc5faa10-abc5-40f1-9a48-00539b79886f using man macros.