summaryrefslogtreecommitdiffstats
path: root/factor
diff options
context:
space:
mode:
authorjsm <jsm@NetBSD.org>2004-02-08 13:16:25 +0000
committerjsm <jsm@NetBSD.org>2004-02-08 13:16:25 +0000
commit23734f8d580f6b1b4030bd2216d04096e2902f5f (patch)
tree6038382943027db078c2a03394ce8bca4c6a1156 /factor
parenta7bbeb674f2b539724bf45938a40ba9a2d0090cf (diff)
downloadbsdgames-darwin-23734f8d580f6b1b4030bd2216d04096e2902f5f.tar.gz
bsdgames-darwin-23734f8d580f6b1b4030bd2216d04096e2902f5f.tar.zst
bsdgames-darwin-23734f8d580f6b1b4030bd2216d04096e2902f5f.zip
Separate primes manpage from that of factor. Correct DIAGNOSTICS
information.
Diffstat (limited to 'factor')
-rw-r--r--factor/Makefile3
-rw-r--r--factor/factor.650
2 files changed, 7 insertions, 46 deletions
diff --git a/factor/Makefile b/factor/Makefile
index 0be04759..415e38a5 100644
--- a/factor/Makefile
+++ b/factor/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2002/09/19 03:15:39 lukem Exp $
+# $NetBSD: Makefile,v 1.11 2004/02/08 13:16:25 jsm Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
# For MKCRYPTO
@@ -17,7 +17,6 @@ DPADD+= ${LIBCRYPTO}
.endif
MAN= factor.6
-MLINKS+=factor.6 primes.6
.PATH: ${PRIMES}
.include <bsd.prog.mk>
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.