title: Find Minimum Sum Factors Number
signature: find_minimum_sum_factors_number <- function(num) {
test_code: 
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  validate_solution <- function(actual, expected) {
      abs(actual - expected) < 1e-06
  }
  
  driver <- function(num, expected){
      if (validate_solution(PLACEHOLDER_FN_NAME(num), expected)){
          "PASSED"
      } else{
          "FAILED"
      }
  }
  
  main <- function() {
      cat(sprintf("TEST-0...%s\n",driver(
          83L, 
          83.0
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          88L, 
          17.0
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          60L, 
          12.0
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          6L, 
          5.0
      )))
  
      cat(sprintf("TEST-4...%s\n",driver(
          26L, 
          15.0
      )))
  
      cat(sprintf("TEST-5...%s\n",driver(
          98L, 
          17.0
      )))
  
      cat(sprintf("TEST-6...%s\n",driver(
          38L, 
          21.0
      )))
  
      cat(sprintf("TEST-7...%s\n",driver(
          90L, 
          13.0
      )))
  
      cat(sprintf("TEST-8...%s\n",driver(
          76L, 
          23.0
      )))
  
      cat(sprintf("TEST-9...%s\n",driver(
          66L, 
          16.0
      )))
  
  }
  
  main()
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;
  }