class PrimeFactors
  def self.of(number)
    factors = []
    divisor = 2
    while number > 1
      while (number % divisor) == 0
        factors << divisor
        number /= divisor
      end
      divisor += 1
    end
    factors
  end
end
