added efficient solution
added primes module
added output