title: Find Minimum Sum Factors Number
signature: func findMinimumSumFactorsNumber(num int) float64 {
test_code: package main
  
  import (
      "fmt"
      "reflect"
      "math"
      "sort"
  )
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  func validateSolution(actual float64, expected float64) bool {
      return math.Abs(actual - expected) < 1e-06
  }
  
  func driver(num int, expected float64) string {
      if validateSolution(PLACEHOLDER_FN_NAME(num),expected) {
              return "PASSED"
      }
      return "FAILED"
  
  }
  
  func main() {
  
      // Use imports to avoid undefined errors
      var _ = reflect.DeepEqual
      _ = math.Abs
      _ = sort.Sort
      result := ""
      result = driver(83, 83.0)
      fmt.Printf("TEST-0...%s\n", result)
      
      result = driver(88, 17.0)
      fmt.Printf("TEST-1...%s\n", result)
      
      result = driver(60, 12.0)
      fmt.Printf("TEST-2...%s\n", result)
      
      result = driver(6, 5.0)
      fmt.Printf("TEST-3...%s\n", result)
      
      result = driver(26, 15.0)
      fmt.Printf("TEST-4...%s\n", result)
      
      result = driver(98, 17.0)
      fmt.Printf("TEST-5...%s\n", result)
      
      result = driver(38, 21.0)
      fmt.Printf("TEST-6...%s\n", result)
      
      result = driver(90, 13.0)
      fmt.Printf("TEST-7...%s\n", result)
      
      result = driver(76, 23.0)
      fmt.Printf("TEST-8...%s\n", result)
      
      result = driver(66, 16.0)
      fmt.Printf("TEST-9...%s\n", result)
      
          
  }
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;
  }