list =[]
for t in range(1,1000):
if not t%2==0:
list.append(t)
for n in list:
for l in range(1,1000):
if n%l==0 and not n==l and not l==1:
list.remove(n)
break
list.remove(1)
print (list)
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)