Numbers-0.2.1: An assortment of number theoretic functions

Data.Numbers

Description

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

Synopsis

Documentation

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