```
class Solution(object):
blank = 0
def countPrimes(self, n):
global blank
blank = 0
if n < 2:
return blank-1
for i in range(2,n):
if (n%i)==0:
return self.countPrimes(n-1)
else:
blank+=1
return self.countPrimes(n-1)
```