aboutsummaryrefslogtreecommitdiff
path: root/06_storage/primes.h
diff options
context:
space:
mode:
Diffstat (limited to '06_storage/primes.h')
-rw-r--r--06_storage/primes.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/06_storage/primes.h b/06_storage/primes.h
new file mode 100644
index 0000000..d9006f7
--- /dev/null
+++ b/06_storage/primes.h
@@ -0,0 +1,12 @@
1#ifndef PRIMES_H
2#define PRIMES_H
3
4#include <limits.h>
5
6#define MAX_PRIME INT_MAX
7#define TABLESIZE (1 << 28)
8
9int primes_in_range(int, int, void (*)(const char *));
10void generate_primes(unsigned char *, void (*)(const char *));
11
12#endif

Generated with cgit - Back to sebastiano.tronto.net