public class Primes
extends java.lang.Object
| Constructor and Description |
|---|
Primes() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Obtain all primes between two bounds by filtering out the composites
contained in the files in the given directory.
|
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - An array of String of length 3. Element 0: lower bound,
exclusive. Element 1: upper bound, inclusive. Element 2: the directory
containing files of composite numbers. The output file "primes.txt" will
also go there.java.lang.ExceptionCopyright © 2006-2015 Heng Sun.