Skip to content

Instantly share code, notes, and snippets.

@alsamitech
Created September 18, 2024 18:02
Show Gist options
  • Save alsamitech/14a6d41abc1e64fa3f477eb7eb60562e to your computer and use it in GitHub Desktop.
Save alsamitech/14a6d41abc1e64fa3f477eb7eb60562e to your computer and use it in GitHub Desktop.
Reverse Factorial
long unsigned int rf(long unsigned int rf){
long unsigned int d=1;
while(rf!=1)rf/=d++;
return d-1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment