Project Euler problems translated to Ruby from Python with TDD.