count = 0
for i in range(100,1000):
  
  #使用flag作为标记
  flag = 1
    for j in range(2,int(i**0.5)+1):
        if i % j == 0:
            flag = 0
            break
    if flag == 1:
        count += 1
print(count)