PrimeFactorsKata, now in Scala