title: Strong numbers in python
body: <p>A number is strong number if the sum of the factorials of the individual digits is equal to the number itself.
  For example: 145 = 1! + 4! +5!</p>
  
  <p>I wrote the following code in python for this:</p>
  
  <pre><code>import math
  def strong_num():
      return [x for x in range(1,1000) if x==int(reduce(lambda p,q:math.factorial(int(p))+math.factorial(int(q)),str(x)))]
  
  print strong_num()
  </code></pre>
  
  <p>but the interpreter never returns??
  What is wrong with this code?</p>