Project 22 for project euler (names.rb)