Numbers (hackage): Functions for finding prime numbers, checking whether a number is prime, finding the factors of a number etc.
Keywords: algorithms|library|number-theory