-- Helper functions for prime numbers. -- -- Useful for hash table sizes. packagePrimesis
-- Tests if N is a prime number. functionPrime
(N : inPositive) -- The number to test. returnBoolean; -- True if and only if N is prime.
-- Returns the smallest prime number that is greater or equal to N. functionNext_Prime
(N : inPositive) -- Start searching at this number. returnPositive; -- The smallest prime number >= N.