Adding problem3 definition
Added primes