The resistivity of high-Tc cuprates