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)