The energy carried by one photon is directly proportional to its
frequency. So the photon energy is greatest for the electromagnetic
waves with the highest frequency / shortest wavelengths.
That's why when you get past visible light and on up through ultraviolet,
X-rays, and gamma rays, the radiation becomes dangerous ==> each
photon carries enough energy to tear electrons away from their atoms,
ripping molecules apart and damaging cells.
The photon with the highest energy is a gamma-ray photon.
1) Frequency: 
the energy of the photon absorbed must be equal to the ionization enegy of the atom, which is

The energy of a photon is given by

where
is the Planck's constant. By using the energy written above and by re-arranging thsi formula, we can calculate the frequency of the photon:

2) Wavelength: 91.2 nm
The wavelength of the photon can be found from its frequency, by using the following relationship:

where
is the speed of light and f is the frequency. Substituting the frequency, we find
