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