diff options
author | wiz <wiz@NetBSD.org> | 2008-02-03 03:29:17 +0000 |
---|---|---|
committer | wiz <wiz@NetBSD.org> | 2008-02-03 03:29:17 +0000 |
commit | 889e3f85515ffa0f8441d9e7de28c22569d2eabe (patch) | |
tree | 7120a19e03dc00b177fee6944a43eae4f7be528d /primes | |
parent | ae0cade747194815451dfff1585f6acb39805efb (diff) | |
download | bsdgames-darwin-889e3f85515ffa0f8441d9e7de28c22569d2eabe.tar.gz bsdgames-darwin-889e3f85515ffa0f8441d9e7de28c22569d2eabe.tar.zst bsdgames-darwin-889e3f85515ffa0f8441d9e7de28c22569d2eabe.zip |
Document -d.
Diffstat (limited to 'primes')
-rw-r--r-- | primes/primes.6 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/primes/primes.6 b/primes/primes.6 index 14d51016..9499398f 100644 --- a/primes/primes.6 +++ b/primes/primes.6 @@ -1,4 +1,4 @@ -.\" $NetBSD: primes.6,v 1.2 2004/02/09 23:25:47 wiz Exp $ +.\" $NetBSD: primes.6,v 1.3 2008/02/03 03:29:17 wiz Exp $ .\" .\" Copyright (c) 1989, 1993 .\" The Regents of the University of California. All rights reserved. @@ -37,7 +37,7 @@ .\" .\" chongo <for a good prime call: 391581 * 2^216193 - 1> /\oo/\ .\" -.Dd February 8, 2004 +.Dd February 3, 2008 .Dt PRIMES 6 .Os .Sh NAME @@ -45,6 +45,7 @@ .Nd generate primes .Sh SYNOPSIS .Nm primes +.Op Fl d .Op Ar start Op Ar stop .Sh DESCRIPTION The @@ -80,6 +81,11 @@ 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. +When given the +.Fl d +argument, +.Nm +prints the difference between the current and the previous prime. .Sh DIAGNOSTICS Out of range or invalid input results in an appropriate error message |