Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ factor(1) — sysv — mips UMIPS RISC/os 4.52

Media Vault

Software Library

Restoration Projects

Artifacts Sought



FACTOR(1-SysV)      RISC/os Reference Manual       FACTOR(1-SysV)



NAME
     factor - obtain the prime factors of a number

SYNOPSIS
     factor [ integer ]

DESCRIPTION
     When you use factor without an argument, it waits for you to
     give it an integer.  After you give it a positive integer
     less than or equal to 1014, it factors the integer, prints
     its prime factors the proper number of times, and then waits
     for another integer.  factor exits if it encounters a zero
     or any non-numeric character.

     If you invoke factor with an argument, it factors the
     integer as described above, and then it exits.

     The maximum time to factor an integer is proportional to
     sqrt(n), factor will take this time when n is prime or the
     square of a prime.

ERRORS
     No check is made that the argument given is a valid integer.
     Invalid arguments are interpreted as 0.































                         Printed 1/15/91                   Page 1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026