added primes method to Integer class. solved problem 46