提交时间:2024-01-26 20:54:38

运行 ID: 38371

#include<iostream> using namespace std; int main() { int a; cin>>a; for(int i=1;i<=a;i++){ if(a%i==0){ if(i>1){ int x; for(int j=1;j<i;j++) { if(i%j==0){ x=j; } } if(x==1){ cout<<i<<" "; } } } } return 0; }