Orthogonal Array Library  1.0.0
Libray for generating orthogonal arrays based on Art Owen's oa library
All Classes Namespaces Files Functions Variables Typedefs Macros Pages
primes.cpp File Reference
#include "primes.h"

Namespaces

 oacpp
 Orthogonal Array Namespace.
 
 oacpp::primes
 Utilities related to prime numbers.
 

Functions

int oacpp::primes::isprime_old (int p)
 Is the number prime. More...
 
int oacpp::primes::isprime (unsigned int n)
 returns 1 for prime argument More...
 
void oacpp::primes::primepow (int q, int *p, int *n, int *isit)
 find q=p^n if q is a prime power with n>0 More...
 
int oacpp::primes::isprimepow (int q)
 returns 1 for prime power argument More...
 
int oacpp::primes::ipow (int a, int b)
 pow() with integer arguments and value More...
 

Detailed Description

Author
Robert Carnell

License: This file may be freely used and shared according to the original license.

Reference:

Original Header:

These programs construct and manipulate orthogonal arrays. They were prepared by

  • Art Owen
  • Department of Statistics
  • Sequoia Hall
  • Stanford CA 94305

They may be freely used and shared. This code comes with no warranty of any kind. Use it at your own risk.

I thank the Semiconductor Research Corporation and the National Science Foundation for supporting this work.