project euler for ruby practice