X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fprime.c;h=0ed0eda107c308e3e8123156037d97c41bf7cc73;hb=2a64fd8ad0419220eccfcde539ed1791138ef942;hp=877442dad8dfa973df4dfb1522413b5becf8da0c;hpb=5b53087fa5a07ff89d34cf3bf3bc1b28809f05c2;p=libucw.git diff --git a/lib/prime.c b/lib/prime.c index 877442da..0ed0eda1 100644 --- a/lib/prime.c +++ b/lib/prime.c @@ -1,12 +1,12 @@ /* * Sherlock Library -- Prime Number Tests * - * (c) 1997 Martin Mares, + * (c) 1997 Martin Mares + * + * This software may be freely distributed and used according to the terms + * of the GNU Lesser General Public License. */ -#include -#include - #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 int main(int argc, char **argv)