title: Finding prime numbers using list comprehention
body: <p>I was trying to generate all prime numbers in range x to y. I tried simple example first: <code>range(10,11)</code> which means to check if 10 is a prime number:<br>
  Here is my code:</p>
  
  <pre><code>prime_list = [x for x in range(10, 11) for y in range(2,x) if x % x == 0 and x % 1 == 0 and x % y != 0]
  </code></pre>
  
  <p>I know that the thing is missing the option to tell the expression that <code>x%y != 0</code> should be checked for all y in <code>range (2,x)</code> and return true if and only if all have met this condition.</p>
  
  <p>How do we do that?</p>