Skip to main content
5 of 7
added 3 characters in body
Noodle9
  • 20.4k
  • 3
  • 23
  • 47

C (gcc), 33 bytes

n;f(x){for(n=0;++n!=x;x/=n);x=n;} 

Try it online!

How

Uses the gcc C extension: ++<var1>! = <var2> as ++n!=x which increments n until n! is equal to x. ¯\(ツ)

Noodle9
  • 20.4k
  • 3
  • 23
  • 47