solved problems 40-41, added fast primes gen