Finding the sum of prime numbers between m and n (m and n included in the sum)

后端 未结 0 1171
情深已故
情深已故 2020-11-21 14:41
def isPrime(n, i):
    if i == n-1:
        return ("True")
    elif n%i == 0:
        return ("False")
    else:
        return isPrime(n, i+1)
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题