How could I check if a number is a prime number?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/567222/simple-prime-generator-in-python">Simple Prime Generator in Python</a>  </p>
</blockquote>



<p>First I will prompt user to input any number. Then my code will check whether does the number input by the user is a Prime number not. </p>

<p>Here is my codes:</p>

<pre><code>num = int(raw_input("Input any of the number you like:"))
for x in range(2, int(num**0.5)+1):
    if num % x == 0:
        print "It is not a prime number"
    else:
        print "It is a prime number"
</code></pre>

<p>But question is I cant seem to get the output for 2 and 3. And when I randomly input any numbers like 134245, the system will output alot of sentences. And I do not know why? </p>

<p>Appreciate any kind souls to help me up :)</p>
