mdoc(7) police: sweep.
This commit is contained in:
parent
1798791d24
commit
8fea899f6b
@ -40,18 +40,16 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" chongo <for a good prime call: 391581 * 2^216193 - 1> /\oo/\
|
.\" chongo <for a good prime call: 391581 * 2^216193 - 1> /\oo/\
|
||||||
.\"
|
.\"
|
||||||
.Dd Oct 10, 2002
|
.Dd October 10, 2002
|
||||||
.Dt FACTOR 6
|
.Dt FACTOR 6
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
.Nm factor ,
|
.Nm factor , primes
|
||||||
.Nm primes
|
|
||||||
.Nd factor a number, generate primes
|
.Nd factor a number, generate primes
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm
|
.Nm
|
||||||
.Op Fl h
|
.Op Fl h
|
||||||
.Op Ar number ...
|
.Op Ar number ...
|
||||||
.br
|
|
||||||
.Nm primes
|
.Nm primes
|
||||||
.Op Fl h
|
.Op Fl h
|
||||||
.Op Ar start Op Ar stop
|
.Op Ar start Op Ar stop
|
||||||
@ -60,7 +58,7 @@ The
|
|||||||
.Nm
|
.Nm
|
||||||
utility will factor positive integers.
|
utility will factor positive integers.
|
||||||
When a number is factored, it is printed, followed by a
|
When a number is factored, it is printed, followed by a
|
||||||
.Dq \&: ,
|
.Ql \&: ,
|
||||||
and the list of factors on a single line.
|
and the list of factors on a single line.
|
||||||
Factors are listed in ascending order, and are preceded by a space.
|
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.
|
If a factor divides a value more than once, it will be printed more than once.
|
||||||
@ -75,7 +73,8 @@ is invoked with no arguments,
|
|||||||
.Nm
|
.Nm
|
||||||
reads numbers, one per line, from standard input, until end of file or error.
|
reads numbers, one per line, from standard input, until end of file or error.
|
||||||
Leading white-space and empty lines are ignored.
|
Leading white-space and empty lines are ignored.
|
||||||
Numbers may be preceded by a single +.
|
Numbers may be preceded by a single
|
||||||
|
.Ql + .
|
||||||
Numbers are terminated by a non-digit character (such as a newline).
|
Numbers are terminated by a non-digit character (such as a newline).
|
||||||
After a number is read, it is factored.
|
After a number is read, it is factored.
|
||||||
.Pp
|
.Pp
|
||||||
@ -106,25 +105,22 @@ is read from standard input and
|
|||||||
is taken to be the maximum.
|
is taken to be the maximum.
|
||||||
The
|
The
|
||||||
.Ar start
|
.Ar start
|
||||||
value may be preceded by a single +.
|
value may be preceded by a single
|
||||||
|
.Ql + .
|
||||||
The
|
The
|
||||||
.Ar start
|
.Ar start
|
||||||
value is terminated by a non-digit character (such as a newline).
|
value is terminated by a non-digit character (such as a newline).
|
||||||
.Sh DIAGNOSTICS
|
.Sh DIAGNOSTICS
|
||||||
.Bl -item
|
.Bl -diag
|
||||||
.It
|
.It "negative numbers aren't permitted"
|
||||||
negative numbers aren't permitted
|
.It "illegal numeric format"
|
||||||
.It
|
.It "start value must be less than stop value"
|
||||||
illegal numeric format
|
.It "Result too large"
|
||||||
.It
|
|
||||||
start value must be less than stop value
|
|
||||||
.It
|
|
||||||
Result too large
|
|
||||||
.El
|
.El
|
||||||
.Sh BUGS
|
.Sh BUGS
|
||||||
.Nm
|
.Nm
|
||||||
cannot handle the
|
cannot handle the
|
||||||
.Dq 10 most wanted
|
.Dq "10 most wanted"
|
||||||
factor list,
|
factor list,
|
||||||
.Nm primes
|
.Nm primes
|
||||||
won't get you a world record.
|
will not get you a world record.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user