improved algorithm for 5th exercise - using primes product