Of coarse there is! Plenty of people can memorize numbers and plenty of other information at a single glance. I use to work with a guy who could memorize long numbers in a single glance and never forget it. To this day he probably still remembers the bosses credit card numbers.

We've discussed photographic memory and whether MacGyver has it or not in
here before.
Also the number may have been very similar to one he already has memorized with maybe the last couple of numbers being different which would make it even easier to remember.