Solving Euler problems w/Scala