# Summation Of Primes
The sum of the primes below or equal to 10 is **2 + 3 + 5 + 7 = 17**. Find the sum of all the primes **_below or equal to the number passed in_**.
From Project Euler's [Problem #10](https://projecteuler.net/problem=10 "Project Euler - Problem 10").
import math
def summationOfPrimes(primes):
    ans = 0
    for num in range(2,primes + 1):
        if all(num%i!=0 for i in range(2, int(math.sqrt(num))+1)):
            ans += num
    return ans

import math
def summationOfPrimes(primes):
    ans = 0
    for num in range(2,primes + 1):
        if all(num%i!=0 for i in range(2, int(math.sqrt(num))+1)):
            ans += num
    return ans
