SCCS-vsn: games/factor/factor.c 4.3
SCCS-vsn: games/primes/primes.c 5.3
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)factor.c 4.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)factor.c 4.3 (Berkeley) %G%";
* usage:
* factor [number] ...
*
* usage:
* factor [number] ...
*
- * With no args, reads numbers from stdin and factors them.
- * With 1 or more args, factors such args. Factors are printed
- * in assending order, with a leading tab, one per line.
+ * The form of the output is:
- * When more than one arg is supplied, the argument value, left
- * justified is printed before the set of factors. This is not
- * one for reading values from input for historical reasons.
+ * number: factor1 factor1 factor2 factor3 factor3 factor3 ...
+ *
+ * where factor1 < factor2 < factor3 < ...
+ *
+ * If no args are given, the list of numbers are read from stdin.
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)primes.c 5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)primes.c 5.3 (Berkeley) %G%";
* usage:
* primes [start [stop]]
*
* usage:
* primes [start [stop]]
*
- * Print primes >= start and <= stop. If stop is omitted,
+ * Print primes >= start and < stop. If stop is omitted,
* the value 4294967295 (2^32-1) is assumed. If start is
* omitted, start is read from standard input.
*
* the value 4294967295 (2^32-1) is assumed. If start is
* omitted, start is read from standard input.
*
- * Prints "ouch" if start or stop is > 4294967295 (2^32-1)
- * or if a non-numeric is read on stdin.
+ * Prints "ouch" if start or stop is bogus.
- * Validation check: there are 664579 primes between 0 and 10^7
+ * validation check: there are 664579 primes between 0 and 10^7