python 找出a-b之间的质数
python">def prime(b):
t=b/2
for i in range(2,t+1):
if b%i==0:
break
else:
return b
if __name__=="__main__":
a=input('please input the first number:')
b=input('please input the next number:')
list=[]
for i in range(a,b+1):
if prime(i):
list.append(prime(i))
print 'the prime list is %s'%list