#include<bits/stdc++.h> using namespace std; int n,i=2; int main(){ cin>>n; while(i<=n){ while(n%i==0){ cout<<i<<" "; n/=i; } i++; } return 0; } /************************************************************** Problem: 1234 User: zhangziang Language: C++ Result: Accepted Time:4 ms Memory:2072 kb ****************************************************************/