← Previous Next →

Sum of every prime number below n

Created by Julien Palard

Instructions

Write a sum_primes function returning the sum of every prime number strictly inferior to its single parameter.

Example

>>> sum_primes(10)
17

Advice

You may copy/paste your is_prime function from a previous exercise ;)