From ab0db69a7b11ba1a9dc52d50c94e9e321b70ebf0 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Fri, 6 Jun 2025 09:13:54 +0200 Subject: Added example 6 --- 06_storage/primes.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 06_storage/primes.h (limited to '06_storage/primes.h') 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 @@ +#ifndef PRIMES_H +#define PRIMES_H + +#include + +#define MAX_PRIME INT_MAX +#define TABLESIZE (1 << 28) + +int primes_in_range(int, int, void (*)(const char *)); +void generate_primes(unsigned char *, void (*)(const char *)); + +#endif -- cgit v1.3