#include <bits/stdc++.h>
using namespace std;
int main()
{
int y=2,s;
cin>>s;
while(s!=1)
{
if(s%y==0)
{
cout<<y<<endl;
s=s/y;
}
else
{
y++;
}
}
return 0;
}
【基础】质因子
于 2021-12-14 19:36:05 首次发布