The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
<html><head><title>factor</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" >
</head>
<body class='pod'>
<!--
  generated by Pod::Simple::HTML v3.01,
  using Pod::Simple::PullParser v2.02,
  under Perl v5.008002 at Thu Aug  5 13:56:27 2004 GMT.

 If you want to change this HTML document, you probably shouldn't do that
   by changing it directly.  Instead, see about changing the calling options
   to Pod::Simple::HTML, and/or subclassing Pod::Simple::HTML,
   then reconverting this document from the Pod source.
   When in doubt, email the author of Pod::Simple::HTML for advice.
   See 'perldoc Pod::Simple::HTML' for more info.

-->

<!-- start doc -->
<a name='___top' class='dummyTopAnchor' ></a>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="NAME"
>NAME</a></h1>

<p><b>factor</b> - factor a number</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="SYNOPSIS"
>SYNOPSIS</a></h1>

<p><b>factor</b> [<i>number ...</i>]</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="DESCRIPTION"
>DESCRIPTION</a></h1>

<p>The factor utility will factor positive integers less than or equal to <code lang='und' xml:lang='und'>2^32 - 1</code>.
When a number is factored,
it is printed,
followed by a ``:&#39;&#39;,
and the list of factors on a single line.
Factors are listed in ascending order,
and are preceded by a space.
If a factor divides a value more than once,
it will be printed more than once.</p>

<p>When factor is invoked with one or more arguments,
each argument will be factored.</p>

<p>When factor is invoked with no arguments,
factor reads numbers,
one per line,
from standard input,
until end of file or error.
Leading white-space and empty lines are ignored.
Numbers may be preceded by a single <code lang='und' xml:lang='und'>-</code> or <code lang='und' xml:lang='und'>+</code>.
Numbers are terminated by a non-digit character (such as a new-line).
After a number is read,
it is factored.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="BUGS"
>BUGS</a></h1>

<p><i>factor</i> has no known bugs.
This documentation corrects a bug in the BSD implementation of <i>factor</i>,
which incorrectly states that <i>factor</i> will accept negative integers.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="AUTHOR"
>AUTHOR</a></h1>

<p>The Perl implementation of <i>factor</i> was written by Jonathan Feinberg,
<i>jdf@pobox.com</i>.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="COPYRIGHT_and_LICENSE"
>COPYRIGHT and LICENSE</a></h1>

<p>This program is copyright (c) Jonathan Feinberg 1999.</p>

<p>This program is free and open software.
You may use,
modify,
distribute,
and sell this program (and any modified variants) in any way you wish,
provided you do not restrict others from doing the same.</p>

<!-- end doc -->

</body></html>