X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fprime.c;h=56bcc87ef050573467861b416523a150718fdc3c;hb=34289767d57bb8845699c819362d286bd51c8952;hp=fe47ecd3472290ab87203f496e9adcd049e65698;hpb=4ecd6b5eabaf81c764a8ecf4ba8bacb7452a26d1;p=libucw.git diff --git a/lib/prime.c b/lib/prime.c index fe47ecd3..56bcc87e 100644 --- a/lib/prime.c +++ b/lib/prime.c @@ -1,13 +1,10 @@ /* * Sherlock Library -- Prime Number Tests * - * (c) 1997 Martin Mares, + * (c) 1997 Martin Mares */ -#include -#include - -#include "lib.h" +#include "lib/lib.h" static int /* Sequential search */ __isprime(uns x) /* We know x != 2 && x != 3 */ @@ -61,7 +58,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)