会员
周边
新闻
博问
闪存
众包
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
mindtechnist
博客园
首页
新随笔
联系
订阅
管理
09 2020 档案
分解质因数---输出一个数的所有质数因子
摘要:输入一个数字,输出它的所有质数因子。 #include <iostream> #include <cmath> #include <sstream> using namespace std; //判断一个数是质数:如果用0~n^0.5去除,均无法整除,则为质数 int isPrime(int inp
阅读全文
posted @
2020-09-06 11:01
Mindtechnist
阅读(56)
评论(0)
推荐(0)
公告