aboutsummaryrefslogtreecommitdiff
path: root/06_storage/primes.h
blob: d9006f7ac75e56f92eff5de619775ca2021d1733 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef PRIMES_H
#define PRIMES_H

#include <limits.h>

#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

Generated with cgit - Back to sebastiano.tronto.net