Go to the documentation of this file.
28 #ifndef SCIMATH_PRIMES_H
29 #define SCIMATH_PRIMES_H
31 #include <casacore/casa/aips.h>
32 #include <casacore/casa/Containers/Block.h>
33 #include <casacore/casa/OS/Mutex.h>
static uInt smallestPrimeFactor(uInt number)
This function returns the smallest factor of number.
static uInt aLargerPrimeThan(uInt number)
This function returns the closest integer larger than number from the table of primes.
static Block< uInt > cacheTable
This is the table which stores the prime numbers.
static Block< uInt > factor(uInt number)
This function returns a block, of variable length, with each factor indexed.
static uInt nextLargerPrimeThan(uInt number)
This function finds the next largest prime than number, returns that value and stores it in the table...
this file contains all the compiler specific defines
static void initializeCache()
This function returns the number of primes stored in the primes table.
bool Bool
Define the standard types used by Casacore.
static Bool isPrime(uInt number)
This function takes number and returns "True" if number is prime, "False" if it is not.