Euler1 in scala