Ruby solutions to Project Euler Problem #11