def divs(x):
res = set()
for i in range(1, int(x ** 0.5) + 1):
if x % i == 0:
res.add(i)
res.add(x // i)
if len(res) == 2:
return sorted(list(res))
else:
return 0
k = 0
for x in range(0, 1001):
if divs(x) != 0:
k += 1
print(k)