Created a better way to get the largest prime number.