Prime Factors Kata in Ruby