Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 30th, 2012  |  syntax: Python  |  size: 0.27 KB  |  views: 59  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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