Skip to main content
1 of 7
Noodle9
  • 20.4k
  • 3
  • 23
  • 47

C (gcc), 33 bytes

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

Try it online!

How

Uses the c operator x!=++n which increments x until x! is equal to n. ¯\(ツ)

Noodle9
  • 20.4k
  • 3
  • 23
  • 47