python,哪里有问题啊

P1217 [USACO1.5] 回文质数 Prime Palindromes

lifanhui @ 2023-03-04 14:24:34

a,b=map(int,input().split()) def p(x): for i in range(2,int(x**0.5)+1): if x%i==0: return False return True def q(x): if x<10: return True t=list(str(x)) if t==t[::-1]:return True else: return False for i in range(a,a+b): if p(i) and q(i):print(i)


by noi_sy @ 2023-03-11 10:48:25

@lifanhui 注意格式 看不懂你在写什么


|