Added an algorithm that determines if a number is prime.