Ad
  • Custom User Avatar

    You can remove the whole if-clause. It is basically saying "if condition is true, return true. If condition is false, return false". Instead you can directly return the result of the condition "return (n%1 == 0)"