Transverse momentum distributions and yields for pi(+/-), K-+/-, p, and (p) over bar in p + p collisions at root s = 200 and 62.4 GeV at midrapidity are measured by the PHENIX experiment at the Relativistic Heavy Ion Collider (RHIC). These data provide important baseline spectra for comparisons with identified particle spectra in heavy ion collisions at RHIC. We present the inverse slope parameter T-inv, mean transverse momentum < p(T)>, and yield per unit rapidity dN/dy at each energy, and compare them to other measurements at different root s in p + p and p + (p) over bar collisions. We also present the scaling properties such as m(T) scaling and x(T) scaling on the p(T) spectra between different energies. To discuss the mechanism of the particle production in p + p collisions, the measured spectra are compared to next-to-leading-order or next-to-leading-logarithmic perturbative quantum chromodynamics calculations.