Skip to content

Instantly share code, notes, and snippets.

@ndzj081221130
Created February 17, 2014 10:59
Show Gist options
  • Select an option

  • Save ndzj081221130/9048603 to your computer and use it in GitHub Desktop.

Select an option

Save ndzj081221130/9048603 to your computer and use it in GitHub Desktop.
N!中0的个数
> Written with [StackEdit](https://stackedit.io/).
其实就是求质数分解中,5的指数k
N! = 2^i * 3^j * 5^k * ...
变体:N!中二进制表示中最低位1的位置
其实就是求质数分解中,2的指数+1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment