title: Finding the sum of prime numbers between m and n (m and n included in the sum)
body: <pre><code>def isPrime(n, i):
      if i == n-1:
          return (&quot;True&quot;)
      elif n%i == 0:
          return (&quot;False&quot;)
      else:
          return isPrime(n, i+1)
  
  def sumOfPrime(m,n):
      if m &gt; 0 and n &gt; 0 and m &lt;= n:
        if isPrime(m,2)==True:
          temp = temp + m
          return temp
        else:
          return (sumOfPrime(m+1,n))
      else:
        return temp
  </code></pre>
  <p>how can I fix the error &quot;UnboundLocalError: local variable 'temp' referenced before assignment&quot; without using a global variable</p>