The wavelength λ (in Angstrom) of a photon of energy E (in eV) is given by :
λE=12400, very nearly.
Therefore, λ=12400/E
[The above expression can be easily obtained by remembering that a photon of energy 1eV has wavelength 12400˚A and the energy is inversely proportional to the wave length].
Since E=2eV we have λ=12400/2=6200˚A=620nm.
Photons with wavelength greater than 640nm will have energy less than 2eV so that they will be unable to produce electron-hole pairs in the semiconductor of band gap 2eV.