Project Euler 57 solution in scala