python全是RE,求助大佬
查看原帖
python全是RE,求助大佬
277145
18计科麦志杰楼主2020/11/15 23:36
a = int(input())
b = int(input())

for i in range(a, b + 1):
    count = 0
    for j in range(2, i):
        if i % j == 0:
            count += 1
    if count == 0:
        s1 = str(i)
        s2 = s1[::-1]
        if s1 == s2:
            print(i)
2020/11/15 23:36
加载中...