title: Find Minimum Sum Factors Number
signature: function find_minimum_sum_factors_number(num)
source_py: def find_minimum_sum_factors_number(num):
      sum = 0
      i = 2
      while ((i * i) <= num):
          while ((num % i) == 0):
              sum += i
              num /= i
          i += 1
      sum += num
      return sum
source_cpp: int find_minimum_sum_factors_number(int num) {
    int sum = 0;
    for ( int i = 2;
    i * i <= num;
    i ++ ) {
      while ( num % i == 0 ) {
        sum += i;
        num /= i;
      }
    }
    sum += num;
    return sum;
  }
question_info.entry_fn_name: find_minimum_sum_factors_number
question_info.entry_cls_name: Solution
question_info.test_case_ids: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
question_info.test_code: 
  
  -- SOLUTION CODE
  -- ============================================
  PLACEHOLDER_CODE_BODY
  
  -- TESTING CODE 
  -- ============================================
  function isCorrect(actual, expected)
      if type(expected) ~= type(actual) then
          return false
      end
      
      if type(expected) == 'table' then
          for k,v_expected in pairs(expected) do
              
              if actual[k] == nil then
                  return false
              end
              local v_actual = actual[k]
              if not isCorrect(v_actual, v_expected) then
                  return false
              end
              actual[k]=nil
          end
      
          if next(actual) then 
              return false
          end
          return true
      else
          return actual == expected
      end
  end
  
  function validateSolution(actual, expected)
      return math.abs(actual - expected) < 1e-06
  end
  
  function driver(num, expected)
      local exec_result;
      local status, error_msg = pcall(function () 
          exec_result=PLACEHOLDER_FN_NAME(num) 
      end)
      if status then
          if validateSolution(exec_result,expected) then
              return "PASSED"
          end
          return "FAILED"
      else
          return string.format("ERROR=%s",string.gsub(error_msg,".*:[%d]+: ",""))
      end
  end
      
  function main()
      result = driver(83, 83.0)
      print(string.format("TEST-0...%s",result))
  
      result = driver(88, 17.0)
      print(string.format("TEST-1...%s",result))
  
      result = driver(60, 12.0)
      print(string.format("TEST-2...%s",result))
  
      result = driver(6, 5.0)
      print(string.format("TEST-3...%s",result))
  
      result = driver(26, 15.0)
      print(string.format("TEST-4...%s",result))
  
      result = driver(98, 17.0)
      print(string.format("TEST-5...%s",result))
  
      result = driver(38, 21.0)
      print(string.format("TEST-6...%s",result))
  
      result = driver(90, 13.0)
      print(string.format("TEST-7...%s",result))
  
      result = driver(76, 23.0)
      print(string.format("TEST-8...%s",result))
  
      result = driver(66, 16.0)
      print(string.format("TEST-9...%s",result))
  
  end
  
  main()
question_info.test_list: [{"idx": 0, "outputs": 83, "inputs": {"num": 83}}, {"idx": 1, "outputs": 17.0, "inputs": {"num": 88}}, {"idx": 2, "outputs": 12.0, "inputs": {"num": 60}}, {"idx": 3, "outputs": 5.0, "inputs": {"num": 6}}, {"idx": 4, "outputs": 15.0, "inputs": {"num": 26}}, {"idx": 5, "outputs": 17.0, "inputs": {"num": 98}}, {"idx": 6, "outputs": 21.0, "inputs": {"num": 38}}, {"idx": 7, "outputs": 13.0, "inputs": {"num": 90}}, {"idx": 8, "outputs": 23.0, "inputs": {"num": 76}}, {"idx": 9, "outputs": 16.0, "inputs": {"num": 66}}]