My Ruby take on Project Euler