Added method for identifying prime numbers.