changed method name to find_max_prime for clarity