title: python code is not running.I am calculating prime factors of a number (project euler problem - 3)
body: <p>I am trying to calculate prime factors of a number in python <code>python 3.8.2</code> <code>32bit</code> (when i pass 35 in code its output should be 7,and so on).<br>But for some reason the program does not return any answer (when i click run the cmd does not output anything).But when i run this javascript, the exact same code works there.<br> (Previously i had an array(list) to which i would append prime factors and at last i would pop the last element which worked for smaller numbers , but for really large numbers i would get a Memory error,so i converted it to use only one variable which will be updated for every while loop).<br>  What is going on here ?? </p>
  
  <p>My code is :</p>
  
  <pre><code>import math
  # Computes only prime factors of n
  def compute(n):
      arr = 0
      # Checks if n is divisible by 2, and if it is divisible,returns 2 because there will be no any other 
      # prime factor.
      if n % 2 == 0:
          return 2
      # Now that 2 is eliminated we only check for odd numbers upto (square root of n)+1 
      for i in range(1, round(math.sqrt(n)) + 1, 2):
          while n % i == 0:
              arr = n/i
              n /= i
  
      return str(arr)
  
  print(compute(81))
  </code></pre>
  
  <p>I am a newbie in python so plz tell me if i have made any silly mistakes.
  Ty.</p>