title: Trying to see if a number is prime in python
body: <p>I am trying to write a program that tells you whether a number is prime or not. Here it is. As you can see when you run the <code>chkPrime</code> function everything returns true. I for the life of me can't figure it out. Any ideas?       </p>
  
  <pre><code>total=0
  
  #Check if number is whole
  def chkWhole(x):
  
      if(x%1 == 0):
  
          return True
  
      else:
  
          return False
  
  
  
  
  #Check to see if the number divides evenly with all primes
  def chkModtwo(n):
      a=n%2
      if chkWhole(a)==True:
          return True
      else:
          return False
  def chkModthree(n):
      a=n%3
      if chkWhole(a)==True:
          return True
      else:
          return False
  def chkModfive(n):
      a=n%5
      if chkWhole(a)==True:
          return True
      else:
          return False
  def chkModseven(n):
      a=n%7
      if chkWhole(a)==True:
          return True
      else:
          return False
  
  
  #Check if the number is a prime using other two functions
  
  def chkPrime(n):
      if n== 1 or 2 or 3 or 5 or 7:
          return True
  
      if chkModtwo(n)==False and chkModthree(n)==False and chkModfive(n)==False and chkModseven(n)==False:
          return True
      else:
          return False
  
  #while True:
  #yourinput=raw_input("Enter to check if it is a prime")
  #
  #
  #    youranswer=chkPrime(yourinput)
  #
  #    if youranswer==True:
  #        print("Yes, it is a prime")
  #    else:
  #        print("No, this number is not prime")
  </code></pre>