def count_primes(n): answer = 0 for i in range(2,n): if i % 2 != 0: answer += 1 return answer n = 10 ret = count_primes(n) print(ret)
To embed this project on your website, copy the following code and paste it into your website's HTML: