summaryrefslogtreecommitdiffstats
path: root/factor/factor.6
diff options
context:
space:
mode:
Diffstat (limited to 'factor/factor.6')
-rw-r--r--factor/factor.650
1 files changed, 6 insertions, 44 deletions
diff --git a/factor/factor.6 b/factor/factor.6
index e51896a3..4600bd34 100644
--- a/factor/factor.6
+++ b/factor/factor.6
@@ -1,4 +1,4 @@
-.\" $NetBSD: factor.6,v 1.8 2003/08/07 09:37:12 agc Exp $
+.\" $NetBSD: factor.6,v 1.9 2004/02/08 13:16:25 jsm Exp $
.\"
.\" Copyright (c) 1989, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -37,19 +37,15 @@
.\"
.\" chongo <for a good prime call: 391581 * 2^216193 - 1> /\oo/\
.\"
-.Dd May 31, 1993
+.Dd February 8, 2004
.Dt FACTOR 6
.Os
.Sh NAME
-.Nm factor ,
-.Nm primes
-.Nd factor a number, generate primes
+.Nm factor
+.Nd factor a number
.Sh SYNOPSIS
.Nm
.Op Ar number ...
-.br
-.Nm primes
-.Op Ar start Op Ar stop
.Sh DESCRIPTION
The
.Nm
@@ -74,46 +70,12 @@ Numbers may be preceded by a single - or +.
Numbers are terminated by a non-digit character (such as a newline).
After a number is read, it is factored.
Input lines must not be longer than 255 characters.
-.Pp
-The
-.Nm primes
-utility prints primes in ascending order, one per line, starting at or above
-.Ar start
-and continuing until, but not including
-.Ar stop .
-The
-.Ar start
-value must be at least 0 and not greater than
-.Ar stop .
-The
-.Ar stop
-value must not be greater than 4294967295.
-The default value of
-.Ar stop
-is 4294967295.
-.Pp
-When the
-.Nm primes
-utility is invoked with no arguments,
-.Ar start
-is read from standard input.
-.Ar stop
-is taken to be 4294967295.
-The
-.Ar start
-value may be preceded by a single +.
-The
-.Ar start
-value is terminated by a non-digit character (such as a newline).
-The input line must not be longer than 255 characters.
.Sh DIAGNOSTICS
Out of range or invalid input results in
-.Sq ouch
+an appropriate error message
being written to standard error.
.Sh BUGS
.Nm
cannot handle the
.Dq 10 most wanted
-factor list,
-.Nm primes
-won't get you a world record.
+factor list.