Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
160669 杨炬铃 寻找绝对素数 Python3 Presentation Error 242 MS 3884 KB 482 2026-09-26 09:49:30

Tests(7/10):


Code:

m,n=map(int,input().split()) there=False lis=[] def f(x): if x == 1: return False if x == 2: return True if not(x % 2): return False for i in range(3,int(x ** 0.5)+1,2): if not(x % i): return False return True for k in range(m,n+1): opposite=int(str(k)[::-1]) if f(k) and f(opposite): lis.append(str(k)) there=True print(",".join(lis)) if not(there): print("No")