SHARE
TWEET

Untitled

a guest Oct 30th, 2012 85 Never
  1. for i in range(1000000):
  2.     a, b = divmod(i, 1000)
  3.     sa = str(a)
  4.     sb = str(b)
  5.     if a <= b and a >= 100 and b >= 100 and len(set(sa + sb)) == 6:
  6.         x = a + b
  7.         sx = str(x)
  8.         if x >= 1000 and len(set(sa + sb + sx)) == 10:
  9.             print a, b, x
RAW Paste Data
Top