Not a kata suggestion. The kata expects average computation with no rounding or flooring required. And it is too late to enforce breaking changes to all languages
You've misunderstood the problem slightly. It's not asking if nis a Mersenne prime, but if it produces a Mersenne prime using the provided definition (Mn = 2n - 1).
Oh I didn't realize. My first time making one. :) Thank you for letting me know.
I like how clear and neat this solution is. Seems professional.
Nice solution! :)
Not a kata suggestion. The kata expects average computation with no rounding or flooring required. And it is too late to enforce breaking changes to all languages
This comment is hidden because it contains spoiler information about the solution
Oh I see youre right! thank you for pointing that out. :)
You've misunderstood the problem slightly. It's not asking if
n
is a Mersenne prime, but if it produces a Mersenne prime using the provided definition (Mn = 2n - 1).This comment is hidden because it contains spoiler information about the solution