Solutions for project euler in ruby, typicaly