diff options
| author | Reiner Herrmann <reiner@reiner-h.de> | 2014-08-31 20:21:45 +0200 |
|---|---|---|
| committer | Reiner Herrmann <reiner@reiner-h.de> | 2014-08-31 20:35:09 +0200 |
| commit | 95341b61b030c9e1290f3b326cb7ec584f543aea (patch) | |
| tree | 852386fa04d32eb859bca11c0eff7b5ef9e50f00 /common.h | |
| parent | 571164d977f91925c4c76a292f74f5f93d09ae23 (diff) | |
Diffstat (limited to 'common.h')
| -rw-r--r-- | common.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common.h b/common.h new file mode 100644 index 0000000..10b298e --- /dev/null +++ b/common.h @@ -0,0 +1,9 @@ +#ifndef COMMON_H +#define COMMON_H + +unsigned long* primes(unsigned long limit); +int isprime(unsigned long number, const unsigned long* primes); +unsigned long phi(unsigned long n, unsigned long* primelist); +int ispermutation(unsigned long a, unsigned long b); + +#endif // COMMON_H |
