Numbers-0.0: An assortment of number theoretic functions



This is an assortment of number theorectic functions. As of now it's not very large or fast, but that should improve over time.



primes :: [Integer]Source

An infinite list of prime numbers

isPrime :: Integer -> BoolSource

Checks whether a number is prime

primeFactors :: Integer -> [Integer]Source

Returns the prime factors for a given number

factorSum :: Integer -> IntegerSource

Returns the sum of the factors of a number

factors :: Integer -> [Integer]Source

Returns the factors of a number