Project Euler 2013/09/09
Add error handling
SRM590 Div1 Medium