Skip to main content
deleted 3 characters in body
Source Link
Alexandru
  • 6.1k
  • 4
  • 30
  • 50

Python, 7067

a=lambda x:sum(i for i in xrangerange(1,x)if not x%ix%i<1)
b=lambda x:x==a(a(x))

Python, 70

a=lambda x:sum(i for i in xrange(1,x)if not x%i)
b=lambda x:x==a(a(x))

Python, 67

a=lambda x:sum(i for i in range(1,x)if x%i<1)
b=lambda x:x==a(a(x))
Source Link
Alexandru
  • 6.1k
  • 4
  • 30
  • 50

Python, 70

a=lambda x:sum(i for i in xrange(1,x)if not x%i)
b=lambda x:x==a(a(x))