fork download
  1. n=12
  2. s=0
  3. i=2
  4. while i<=n:
  5. if n%i==0:
  6. s=s+i
  7. i=i+2
  8. print(s)
Success #stdin #stdout 0.03s 63224KB
stdin
Standard input is empty
stdout
24