Fixed bug in get_prime_factors(x) where it would stall for x=4.
primes() generator is now endless. Added wrapper generators to return first x primes, or primes until some maximum value is reached.