Skip to content
Snippets Groups Projects
Suma de numeros complejos 243 B
def es_primo(n):
    if n < 2:
        return False
    for i in range(2, int(n ** 0.5) + 1):
        if n % i == 0:
            return False
    return True

suma = 0
for i in range(1, 201):
    if es_primo(i):
        suma += i

print(suma)