The equation of state of hard hyperspheres in four and five dimensions is calculated from the value of the pair correlation function at contact, as determined by Monte Carlo simulations. These results are compared to equations of state obtained by molecular dynamics and theoretical approaches. In all cases the agreement is excellent. (c) 2005 American Institute of Physics.