returning a generator and twin primes