ruby version of answers for project euler. don't let me ruin the fun of solving it for you! read at your own risk!