Latin Hypercube Samples (lhs)  1.0
R, C++, and Rcpp code to generate Latin hypercube samples
All Classes Namespaces Files Functions Variables Typedefs Macros Pages
primes.h
Go to the documentation of this file.
1 
31 #ifndef PRIMES_H
32 #define PRIMES_H
33 
34 #include "OACommonDefines.h"
35 
39 #define ISPRIMETRUE 1
40 
43 #define ISPRIMEFALSE 0
44 
45 namespace oacpp {
49  namespace primes
50  {
56  int isprime(unsigned int n);
57 
64  int isprime_old(int p);
65 
73  void primepow(int q, int* p, int* n, int* isit);
74 
80  int isprimepow(int q );
81 
88  int ipow( int a, int b );
89  } // end namespace
90 }// end namespace
91 
92 #endif
oacpp::primes::isprime
int isprime(unsigned int n)
Definition: primes.cpp:59
oacpp
Definition: ak.h:39
oacpp::primes::isprimepow
int isprimepow(int q)
Definition: primes.cpp:143
oacpp::primes::isprime_old
int isprime_old(int p)
Definition: primes.cpp:37
OACommonDefines.h
oacpp::primes::ipow
int ipow(int a, int b)
Definition: primes.cpp:150
oacpp::primes::primepow
void primepow(int q, int *p, int *n, int *isit)
Definition: primes.cpp:92