03a951cfac
original factor.6 Submitted by: Koizumi Satoru <koizumistr@minos.ocn.ne.jp>
137 lines
4.3 KiB
Groff
137 lines
4.3 KiB
Groff
.\" Copyright (c) 1989, 1993
|
||
.\" The Regents of the University of California. All rights reserved.
|
||
.\"
|
||
.\" This code is derived from software contributed to Berkeley by
|
||
.\" Landon Curt Noll.
|
||
.\"
|
||
.\" Redistribution and use in source and binary forms, with or without
|
||
.\" modification, are permitted provided that the following conditions
|
||
.\" are met:
|
||
.\" 1. Redistributions of source code must retain the above copyright
|
||
.\" notice, this list of conditions and the following disclaimer.
|
||
.\" 2. Redistributions in binary form must reproduce the above copyright
|
||
.\" notice, this list of conditions and the following disclaimer in the
|
||
.\" documentation and/or other materials provided with the distribution.
|
||
.\" 3. All advertising materials mentioning features or use of this software
|
||
.\" must display the following acknowledgement:
|
||
.\" This product includes software developed by the University of
|
||
.\" California, Berkeley and its contributors.
|
||
.\" 4. Neither the name of the University nor the names of its contributors
|
||
.\" may be used to endorse or promote products derived from this software
|
||
.\" without specific prior written permission.
|
||
.\"
|
||
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||
.\" SUCH DAMAGE.
|
||
.\"
|
||
.\" @(#)factor.6 8.1 (Berkeley) 5/31/93
|
||
.\"
|
||
.\" %FreeBSD: src/games/factor/factor.6,v 1.8 2002/11/29 16:21:33 ru Exp %
|
||
.\"
|
||
.\" By: Landon Curt Noll chongo@toad.com, ...!{sun,tolsoft}!hoptoad!chongo
|
||
.\"
|
||
.\" chongo <for a good prime call: 391581 * 2^216193 - 1> /\oo/\
|
||
.\"
|
||
.\" $FreeBSD$
|
||
.\" <20>ʲ<EFBFBD><CAB2><EFBFBD> Linux JM <20>Υ<EFBFBD><CEA5>쥸<EFBFBD>å<EFBFBD>
|
||
.\" Japanese Version Copyright (c) 1997,1998 MAEHARA Kohichi
|
||
.\" all rights reserved.
|
||
.\" Translated Sat Feb 21 00:00:00 JST 1998
|
||
.\" by MAEHARA Kohichi <maeharak@kw.netlaputa.ne.jp>
|
||
.\"
|
||
.\"WORD: 10 most wanted FBI <20>νФ<CEBD><D0A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȥꥹ<C8A5><EAA5B9>
|
||
.\"
|
||
.\"
|
||
.Dd October 10, 2002
|
||
.Dt FACTOR 6
|
||
.Os
|
||
.Sh ̾<EFBFBD><EFBFBD>
|
||
.Nm factor , primes
|
||
.Nd factor <EFBFBD><EFBFBD><EFBFBD>ǰ<EFBFBD><EFBFBD><EFBFBD>ʬ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ԥʤ<EFBFBD>, primes <EFBFBD><EFBFBD><EFBFBD>ǿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
.Sh <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
.Nm
|
||
.Op Fl h
|
||
.Op Ar number ...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EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͤ<EFBFBD><EFBFBD>Ѥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
||
.Ar start
|
||
<EFBFBD>ο<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƭ<EFBFBD><EFBFBD>
|
||
.Ql +
|
||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>դ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΤϤ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
.Ar start
|
||
<EFBFBD>ο<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Υ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>饯<EFBFBD><EFBFBD> (<28>㤨<EFBFBD>в<EFBFBD><D0B2><EFBFBD>) <20>ǽ<EFBFBD>λ<EFBFBD><CEBB><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD>
|
||
.Sh <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
.Bl -diag
|
||
.It "negative numbers aren't permitted"
|
||
.It "illegal numeric format"
|
||
.It "start value must be less than stop value"
|
||
.It "Result too large"
|
||
.El
|
||
.Sh <EFBFBD>Х<EFBFBD>
|
||
.Nm
|
||
<EFBFBD><EFBFBD>
|
||
.Dq <EFBFBD><EFBFBD><EFBFBD>綧<EFBFBD><EFBFBD>
|
||
<EFBFBD><EFBFBD><EFBFBD>ҤΥꥹ<EFBFBD>Ȥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΤˤϻȤ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
||
.Nm primes
|
||
<EFBFBD><EFBFBD><EFBFBD>ǿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>뤳<EFBFBD>ȤϤǤ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|