1 solutions

  • 0
    @ 2025-11-5 16:54:18

    Pascal :

    var n,i,j,m,k,x,y,z,s:longint;
    BEGIN
        read(n);
        
        for i:=2 to n do
        begin
            for j:=2 to 10000 do if i mod j=0 then begin inc(m,j);break; end;
        end;
        if m<>0 then write(m) else write('7');
    END.
    
    • 1

    Information

    ID
    18056
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By