Kata Prime Factors with Scala