Guest User

Untitled

a guest
Nov 18th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. max = 999
  2. min = 100
  3.  
  4. check = lambda x: True if str(x) == str(x)[::-1] else False
  5.  
  6. def tmp(max, min):
  7. for x in xrange(max*max, min*min, -1):
  8. if check(x):
  9. for i in xrange(max, min, -1):
  10. if x%i==0 and min < x/i < max :
  11. print x, i, x/i, x/i > min
  12. return
  13.  
  14.  
  15. tmp(max, min)
Add Comment
Please, Sign In to add comment