阅读背景:

求复合数的最大质数因子

来源:互联网 

I am accepting a composite number as an input. I want to print all its factors and also the largest prime factor of that number. I have written the following code. It is working perfectly ok till the number 51. But if any number greater than 51 is inputted, wrong output is shown. how can I correct my code?I am accepting a composite number as an input.




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: