28 #ifndef SCIMATH_PRIMES_H
29 #define SCIMATH_PRIMES_H
static Block< uInt > factor(uInt number)
This function returns a block, of variable length, with each factor indexed.
static void initializeCache()
This function returns the number of primes stored in the primes table.
static Block< uInt > cacheTable
This is the table which stores the prime numbers.
static Bool isPrime(uInt number)
This function takes number and returns "True" if number is prime, "False" if it is not...
static uInt smallestPrimeFactor(uInt number)
This function returns the smallest factor of number.
bool Bool
Define the standard types used by Casacore.
Wrapper around a pthreads mutex.
static uInt nextLargerPrimeThan(uInt number)
This function finds the next largest prime than number, returns that value and stores it in the table...
Creates a reference table of prime numbers, and some functions.
static uInt aLargerPrimeThan(uInt number)
This function returns the closest integer larger than number from the table of primes.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.