Functions for dealing with primes
A collection of functions that are helpful for dealing with prime numbers
isPrime(n) takes a number and returns true if it is a positive integer and prime.
factors(n) takes a number and returns a list of its factors (or the factors of the number truncated), including repetition
primes(n) returns a list of all primes less than n (if n is positive)