Caught set error for getHighestPrime()