28 #ifndef SCIMATH_PRIMES_H
29 #define SCIMATH_PRIMES_H
31 #include <casacore/casa/aips.h>
32 #include <casacore/casa/Containers/Block.h>
static uInt aLargerPrimeThan(uInt number)
This function returns the closest integer larger than number from the table of primes.
static void initializeCache()
This function returns the number of primes stored in the primes table.
static uInt smallestPrimeFactor(uInt number)
This function returns the smallest factor of number.
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 std::mutex theirMutex
static uInt nextLargerPrimeThan(uInt number)
This function finds the next largest prime than number, returns that value and stores it in the table...
static Bool isPrime(uInt number)
This function takes number and returns "True" if number is prime, "False" if it is not.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.