packages icon



 factor(1)                                                         factor(1)
                              26 November 1990



 NAME
      factor - prime-factor numbers

 SYNOPSIS
      factor <int> <int>-<int> ...

 DESCRIPTION
      The program will compute the prime factors of each number you give it
      as an argument.  If no arguments are given, it will read numbers from
      standard input, one per line.  In addition to simple integers, you can
      also specify a range of integers as "<int>-<int>", or you can use up
      to 3 trailing wildcards.  Here are some examples:
      % factor 223092871 2147483647
      223092871 = 317 703763
      2147483647 = 2147483647
      % factor 65534-65538
      65534 = 2 7 31 151
      65535 = 3 5 17 257
      65536 = 2^16
      65537 = 65537
      65538 = 2 3^2 11 331
      % factor 123456789.
      1234567890 = 2 3^2 5 3607 3803
      1234567891 = 1234567891
      1234567892 = 2^2 41 7527853
      1234567893 = 3 13 31655587
      1234567894 = 2 7 47 479 3917
      1234567895 = 5 11 23 975943
      1234567896 = 2^3 3 83 619763
      1234567897 = 17 73 994817
      1234567898 = 2 61 10119409
      1234567899 = 3^4 109 139831

 AUTHOR
      Copyright (C) 1987, 1990, 1995 by Jef Poskanzer <jef@acme.com>.  All
      rights reserved.


















                                    - 1 -      Formatted:  November 21, 2024