Renamed prime to is_prime for better reading.