title: Find Minimum Sum Factors Number
signature: class Solution {
  
      public Float findMinimumSumFactorsNumber(Integer 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.extension: java
question_info.entry_fn_name: findMinimumSumFactorsNumber
question_info.entry_cls_name: Solution
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}}]
question_info.test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(Integer num, Float expected){
          try{
              Driver driver = new Driver();
              if (driver.run(num,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution(83, 83.0f);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(88, 17.0f);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(60, 12.0f);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(6, 5.0f);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(26, 15.0f);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(98, 17.0f);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(38, 21.0f);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(90, 13.0f);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(76, 23.0f);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution(66, 16.0f);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Integer num, Float expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(num),expected);
      }
      
      public boolean validateSolution(Float actual, Float expected){
          return Math.abs(actual - expected) < 1e-06f;
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8 9
question_info.commands: java __FILENAME__