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.

Documentation

primeFactors :: Integer -> [Integer]Source

Returns the prime factors for a given number

numOfFactors :: Integer -> Int Source

Returns the number of divisors of a number. Uses http://mathschallenge.net/index.php?section=faq&ref=number/number_of_divisors

factorSum :: Integer -> Integer Source

Returns the sum of the factors of a number

factors :: Integer -> [Integer]Source

Returns the factors of a number

AltStyle によって変換されたページ (->オリジナル) /