Solved some Project Euler problems and other Ruby exercise