title: Finding the sum of prime Numbers in a List in Python
body: <p>I am Trying this question as an exercise but i am stuck.I will try to be as precise as possible</p>
  
  <p>I would like to find the sum of primes with the list as an input</p>
  
  <p>Say the input given to my function is a list like=[17,51,29,39],so it should return 46 as the answer as 17+29=46</p>
  
  <p>Here's the code what i could write:</p>
  
  <pre><code>def sumprimes(l):
      sum=0
      for value in l:
          for i in range(1,float((value)/2)):
              if value%i==0:
                        sum+=value     
      print(sum) 
  </code></pre>
  
  <p>Note-on passing a list,the program should work. I haven't written this part.  </p>
  
  <p>Thanks in advance</p>