Units units units units units!!! Always work with your units.
Your Rydberg constant is in meters, not nanometers. But, look at the equation, it does not = the wavelength, it equals reciprocal wavelength ( 1/wavelength , in math notation wavelength-1).
You need to take the reciprocal of that answer, and you have the wavelength in METERS, you must then convert to nanometers.