add method to find prime numbers in Integer class