Ad
  • Default User Avatar

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

  • Default User Avatar

    what does that arrow function syntax mean. I think i is the currentVal parameter but I don't understand the underscore bit

  • 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

    My code works perfectly accorind to what the instructions say, but it says that 300027 should be false while 7 ^ 6 alone is 6 digits long, and the other numbers aren't enough to increase another a digit and I did the math myself but still I get an error

  • Default User Avatar

    yeah, the list would be handeled as pne element so you wouldn't have to do "*n" plus you can make it a string

  • Default User Avatar

    wouldn't that mean that a list won't work, and they have to be inserted as seperate variables