#include <stdio.h> int wow(int a) { int k; int sum=0; int ret=0; for(k=1;k<a;k++){ if(a%k0){ sum=sum+k; } } if(suma){ ret=1; } return ret; } int main() { int n,i; scanf("%d",&n); for(i=2;i<=n;i++){ if(wow(i)){ printf("%d\n",i); } } return 0; }
By signing up a 追梦算法网 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 追梦算法网 universal account