title: Find First Natural Number Whose Factorial Divisible X
signature: find_first_natural_number_whose_factorial_divisible_x <- function(x) {
test_code: 
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  validate_solution <- function(actual, expected) {
      toString(actual)==toString(expected)
  }
  
  driver <- function(x, expected){
      if (validate_solution(PLACEHOLDER_FN_NAME(x), expected)){
          "PASSED"
      } else{
          "FAILED"
      }
  }
  
  main <- function() {
      cat(sprintf("TEST-0...%s\n",driver(
          67L, 
          66L
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          47L, 
          46L
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          57L, 
          19L
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          89L, 
          88L
      )))
  
      cat(sprintf("TEST-4...%s\n",driver(
          67L, 
          66L
      )))
  
      cat(sprintf("TEST-5...%s\n",driver(
          40L, 
          5L
      )))
  
      cat(sprintf("TEST-6...%s\n",driver(
          16L, 
          6L
      )))
  
      cat(sprintf("TEST-7...%s\n",driver(
          83L, 
          82L
      )))
  
      cat(sprintf("TEST-8...%s\n",driver(
          93L, 
          31L
      )))
  
      cat(sprintf("TEST-9...%s\n",driver(
          43L, 
          42L
      )))
  
  }
  
  main()
source_py: def find_first_natural_number_whose_factorial_divisible_x(x):
      i = 1
      fact = 1
      for i in range(1, x):
          fact = (fact * i)
          if ((fact % x) == 0):
              break
      return i
source_cpp: int find_first_natural_number_whose_factorial_divisible_x(int x) {
    int i = 1;
    int fact = 1;
    for ( i = 1;
    i < x;
    i ++ ) {
      fact = fact * i;
      if ( fact % x == 0 ) break;
    }
    return i;
  }