Blob


1 <head>
2 <title>factor(1) - Plan 9 from User Space</title>
3 <meta content="text/html; charset=utf-8" http-equiv=Content-Type>
4 </head>
5 <body bgcolor=#ffffff>
6 <table border=0 cellpadding=0 cellspacing=0 width=100%>
7 <tr height=10><td>
8 <tr><td width=20><td>
9 <tr><td width=20><td><b>FACTOR(1)</b><td align=right><b>FACTOR(1)</b>
10 <tr><td width=20><td colspan=2>
11 <br>
12 <p><font size=+1><b>NAME </b></font><br>
14 <table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
16 factor, primes &ndash; factor a number, generate large primes<br>
18 </table>
19 <p><font size=+1><b>SYNOPSIS </b></font><br>
21 <table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
23 <tt><font size=+1>factor</font></tt> [ <i>number</i> ]
24 <table border=0 cellpadding=0 cellspacing=0><tr height=5><td></table>
26 <tt><font size=+1>primes</font></tt> [ <i>start</i> [ <i>finish</i> ] ]<br>
28 </table>
29 <p><font size=+1><b>DESCRIPTION </b></font><br>
31 <table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
33 <i>Factor</i> prints <i>number</i> and its prime factors, each repeated the
34 proper number of times. The number must be positive and less than
35 254 (about 1.8&#215;1016).
36 <table border=0 cellpadding=0 cellspacing=0><tr height=5><td></table>
38 If no <i>number</i> is given, <i>factor</i> reads a stream of numbers from the
39 standard input and factors them. It exits on any input not a positive
40 integer. Maximum running time is proportional to <i>-/n </i>.
41 <table border=0 cellpadding=0 cellspacing=0><tr height=5><td></table>
44 <table border=0 cellpadding=0 cellspacing=0><tr height=5><td></table>
46 <i>Primes</i> prints the prime numbers ranging from <i>start</i> to <i>finish</i>,
47 where <i>start</i> and <i>finish</i> are positive numbers less than 256. If
48 <i>finish</i> is missing, <i>primes</i> prints without end; if <i>start</i> is missing,
49 it reads the starting number from the standard input.<br>
51 </table>
52 <p><font size=+1><b>SOURCE </b></font><br>
54 <table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
56 <tt><font size=+1>/usr/local/plan9/src/cmd/factor.c<br>
57 /usr/local/plan9/src/cmd/primes.c<br>
58 </font></tt>
59 </table>
61 <td width=20>
62 <tr height=20><td>
63 </table>
64 <!-- TRAILER -->
65 <table border=0 cellpadding=0 cellspacing=0 width=100%>
66 <tr height=15><td width=10><td><td width=10>
67 <tr><td><td>
68 <center>
69 <a href="../../"><img src="../../dist/spaceglenda100.png" alt="Space Glenda" border=1></a>
70 </center>
71 </table>
72 <!-- TRAILER -->
73 </body></html>