Spectrum of solar flare protons