Module mathematics

Module mathematics 

Source

Structs§

IsPrimeFunction
IS_PRIME(n) - Check if a number is prime
NextPrimeFunction
NEXT_PRIME(n) - Find the next prime >= n
NthPrimeFunction
NTH_PRIME(n) - Alias for PRIME function (more descriptive name)
PrevPrimeFunction
PREV_PRIME(n) - Find the previous prime <= n
PrimeCountFunction
PRIME_COUNT(n) - Count primes up to n
PrimeEngine
Engine for prime number operations
PrimeFunction
PRIME(n) - Returns the nth prime number
PrimePiFunction
PRIME_PI(n) - Alias for PRIME_COUNT (standard mathematical notation π(n))

Constants§

PRIMES_1K
First 1,000 prime numbers (up to 7,919)
PRIMES_10K
First 10,000 prime numbers (up to 104,729)
PRIMES_100K
First 100,000 prime numbers (up to 1,299,709)