project euler ruby solution