added factor.1 and primes.1 stub - 9base - revived minimalist port of Plan 9 us… | |
git clone git://git.suckless.org/9base | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit baa580c2a2190234f86224d627eeac9d29f6e7d7 | |
parent fa62640154da08c5fd229af50efde0d33871a0aa | |
Author: Anselm R Garbe <[email protected]> | |
Date: Fri, 28 May 2010 11:32:00 +0100 | |
added factor.1 and primes.1 stub | |
Diffstat: | |
A factor/factor.1 | 66 +++++++++++++++++++++++++++++… | |
A primes/primes.1 | 0 | |
2 files changed, 66 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/factor/factor.1 b/factor/factor.1 | |
@@ -0,0 +1,66 @@ | |
+.TH FACTOR 1 | |
+.CT 1 numbers | |
+.SH NAME | |
+factor, primes \- factor a number, generate large primes | |
+.SH SYNOPSIS | |
+.B factor | |
+[ | |
+.I number | |
+] | |
+.PP | |
+.B primes | |
+[ | |
+.I start | |
+[ | |
+.I finish | |
+] | |
+] | |
+.SH DESCRIPTION | |
+.I Factor | |
+prints | |
+.I number | |
+and its prime factors, | |
+each repeated the proper number of times. | |
+The number must be positive and less than | |
+.if n 2**54 | |
+.if t 2\u\s754\s0\d | |
+(about | |
+.if n 1.8e16) | |
+.if t 1.8\(mu10\u\s716\s0\d\|). | |
+.PP | |
+If no | |
+.I number | |
+is given, | |
+.I factor | |
+reads a stream of numbers from the standard input and factors them. | |
+It exits on any input not a positive integer. | |
+Maximum running time is proportional to | |
+.if n sqrt(n). | |
+.if t .I \(sr\o'n\(rn'\f1. | |
+.PP | |
+.PP | |
+.I Primes | |
+prints the prime numbers ranging from | |
+.I start | |
+to | |
+.IR finish , | |
+where | |
+.I start | |
+and | |
+.I finish | |
+are positive numbers less than | |
+.if n 2**56. | |
+.if t 2\u\s756\s0\d. | |
+If | |
+.I finish | |
+is missing, | |
+.I primes | |
+prints without end; | |
+if | |
+.I start | |
+is missing, it reads the starting number from the | |
+standard input. | |
+.SH SOURCE | |
+.B \*9/src/cmd/factor.c | |
+.br | |
+.B \*9/src/cmd/primes.c | |
diff --git a/primes/primes.1 b/primes/primes.1 |