title: Python: determining if a number is prime
body: <p>I am new to Python and I'm attempting to write a code that checks to see whether or not a number is prime. So far, I've written this:</p>
  
  <pre><code>def main():
       n = input("Enter number:")
       isprime(n)
  
  def isprime():
      x = Prime
      for m in range (1,n+1,1)
          result = n % m
          print result
  
  
  main()
  </code></pre>
  
  <p>I'm not sure how to proceed after this. I know I have to define <em>isprime</em>. Any help would be greatly appreciated. Thank you!</p>