Posts by Harlem Muniz • 1 point
1 post
-
0
votes6
answers6752
viewsA: Get the list of prime numbers smaller than N
To return how many primes there are between 2 and n (optional question 1 of week 7 of the USP Introduction to Computer Science course): def n_primos(n): n_p = 0 for i in range(2, n): if e_primo(i):…
pythonanswered Harlem Muniz 1