Added a lib folder and a primes module for computing primes.

Updated problems 7 and 10 to use new primes module.