More euler scala problems