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

C (gcc), 33 29 bytes

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

Try it online!

How

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

Noodle9
  • 20.4k
  • 3
  • 23
  • 47