I am solving math problems on projecteuler.net on Ruby.