Skip to main content
2 of 3
deleted 93 characters in body
Manish Kundu
  • 5.3k
  • 2
  • 15
  • 47

Python 3, 25 bytes

lambda n:len(bin(n**n))-3

Try it online!

If the answer is \$x\$, then \$x+1 > n\log{n} >= x\$ holds true, which means \$2^{x+1} > n^n >= 2^x\$. So we can simply count the number of bits in the binary representation of \$n^n\$.

Manish Kundu
  • 5.3k
  • 2
  • 15
  • 47