Ad
  • Default User Avatar

    I think they divided by 2 because the smallest divisor you can have is 2 or above meaning all numbers will be less than x/2 and flooring it was because divisors are only full numbers. The question mark is an if statement. First you have your statement then the question mark then the code to be ran if true and the colon is an else followed by the code for the else

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution