Ruby versions of Euler Projects 1-3