euler problem 3 is now solved in scala