求a到b之间所有质数

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

def Prime(b):
    i = 2
    while i < b:
        if 0 == (j%i):
            return False
        else:
            i = i + 1
    return True
if __name__ == '__main__':
    a = int(input('please type in a\n'))
    b = int(input('please type in b\n'))
    while a < 2:
        a = 2
        for j in range(a, b + 1):
            if(Prime(j)):
                print(j)