Checking for sum of primes

前端 未结 0 1754
闹比i
闹比i 2021-02-16 00:52

The code below checks whether a given integer can be expressed as a sum of two prime numbers:

def sum_of_primes(num):
  isPrime = 1
  for i in range (2,int(num/2)         


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