title: Lambda function for calculating sum of primes
body: <p>While writing a python program for calculating the sum of primes between 2 to n (both inclusive), I am getting the error "The generator is not callable"</p>
  
  <p>Can anyone help with the error or suggest what am I missing here?</p>
  
  <pre><code>n = int(input())
  
  sum = 0
  sum = sum(list(filter((lambda n: n%y != 0 for y in range(2, n)), range(2, n+1))))
  
  print(sum)
  </code></pre>