The energy spectrum of primary cosmic rays at energies between at 2x10$^{13}$ - 3x10$^{17}$ eV is presented according to data from the Tien Shan array on the basis of the detection of the number of electrons in extensive air showers. In the energy range 5x10$^{15}$ - 3x10$^{17}$ eV, the spectrum was obtained by means of the HADRON array and was extended to the region of lower energies from 2x10$^{13}$ eV on the basis of the results of an individual experiment. The changes in the slope of the spectrum in the energy range of 10$^{16}$ - 3x10$^{17}$ eV and a feature of this spectrum at about 1017 eV are analyzed in detail and are described. The spectrum in question is compared with the results obtained at some other arrays.