} else if (second <= first) {
    while (cd <= second) {
      cd += 1;
      if ((first % cd === 0) && (second % cd === 0)) {
        divisor = cd;