what is this methode ?
You used log1p, which is:
Math.log1p()function returns the natural logarithm (base
e) of 1 + a number, that is
You only need to check if a number is an integer. Did you try looking it up on Google?
yes,I did but I did’t find a directly answer