Wonder奇迹奇迹

导航

2015年6月9日 #

计算第k个质因数只能为3,5,7的数

摘要: 英文描述:Design an algorithm to find the kth number such that the only prime factorsare 3, 5, and 7思路:质因数只能为3,5,7,设这个数为val,则val = (3^i)(5^j)(7^n) (i,j,n>=... 阅读全文

posted @ 2015-06-09 17:16 Wonder奇迹奇迹 阅读(336) 评论(0) 推荐(0) 编辑