Euler solutions in scala and scalaz