title: Can't use gcd function in python2.7
body: <p>what is wrong here I tried to use gcd function
  but it give me this error
  but when I used floor and sqrt functions from math it works without any errors</p>
  
  <pre><code>import math
  from random import *
  p=int(input("Enter p value"))
  q=int(input("Enter q value"))
  n=p*q
  z=(p-1)*(q-1)
  e=0
  '''Select E Value'''
  seed(1)
  while(True):
      Random_Value=randint(2,n)
      if math.gcd(z,Random_Value)==1:
          e=Random_Value
          break
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/7GJYP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7GJYP.png" alt="enter image description here"></a></p>