]> mj.ucw.cz Git - libucw.git/blobdiff - lib/prime.c
Moved shell script support commands to lib/shell.
[libucw.git] / lib / prime.c
index 877442dad8dfa973df4dfb1522413b5becf8da0c..0ed0eda107c308e3e8123156037d97c41bf7cc73 100644 (file)
@@ -1,12 +1,12 @@
 /*
  *     Sherlock Library -- Prime Number Tests
  *
 /*
  *     Sherlock Library -- Prime Number Tests
  *
- *     (c) 1997 Martin Mares, <mj@atrey.karlin.mff.cuni.cz>
+ *     (c) 1997 Martin Mares <mj@ucw.cz>
+ *
+ *     This software may be freely distributed and used according to the terms
+ *     of the GNU Lesser General Public License.
  */
 
  */
 
-#include <stdio.h>
-#include <stdlib.h>
-
 #include "lib/lib.h"
 
 static int                             /* Sequential search */
 #include "lib/lib.h"
 
 static int                             /* Sequential search */
@@ -61,7 +61,9 @@ nextprime(uns x)                      /* Returns some prime greater than X, usually the next one or
     }
 }
 
     }
 }
 
-#ifdef PRIME_DEBUG
+#ifdef TEST
+
+#include <stdio.h>
 
 int
 main(int argc, char **argv)
 
 int
 main(int argc, char **argv)