fork download
  1. N,d=1500,lambda n:sum(i for i in range(1,n) if n%i==0)
  2. print({i:d(i) for i in range(N+1) if i==d(d(i)) and i>d(i)})
Success #stdin #stdout 0.14s 27712KB
stdin
Standard input is empty
stdout
{1210: 1184, 284: 220}