The calculated distance (air line) between Huarmey and Lima is approximately 156 miles respectively 252 kilometers.
By car or train, the actual journey to Lima is certainly longer, as only the direct route (as the crow flies) between Huarmey and Lima has been calculated here.