1 solutions

  • 0
    @ 2024-10-21 16:01:46

    #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; }

    Information

    ID
    6795
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    3
    Tags
    (None)
    # Submissions
    35
    Accepted
    22
    Uploaded By