Solved problem 04

Solution for Project Euler 04 and some small revisions to the primes
function in divisor. The primes function runs a little bit faster, but
the code is less concise.