prime factors kata