]> mj.ucw.cz Git - libucw.git/blob - ucw/prime.h
9ca2a01ebce72d48c2cdf878c8dc5d2e46ef2f87
[libucw.git] / ucw / prime.h
1 /*
2  *      The UCW Library -- Prime numbers
3  *
4  *      (c) 2008 Michal Vaner <vorner@ucw.cz>
5  *
6  *      Code taken from ucw/lib.h by:
7  *
8  *      (c) 1997--2008 Martin Mares <mj@ucw.cz>
9  *      (c) 2005 Tomas Valla <tom@ucw.cz>
10  *      (c) 2006 Robert Spalek <robert@ucw.cz>
11  *      (c) 2007 Pavel Charvat <pchar@ucw.cz>
12  *
13  *      This software may be freely distributed and used according to the terms
14  *      of the GNU Lesser General Public License.
15  */
16
17 #ifndef _UCW_PRIME_H
18 #define _UCW_PRIME_H
19
20 #include "ucw/lib.h"
21
22 /* prime.c */
23
24 int isprime(uns x);
25 uns nextprime(uns x);
26
27 /* primetable.c */
28
29 uns next_table_prime(uns x);
30 uns prev_table_prime(uns x);
31
32 #endif // _UCW_PRIME_H