四个(THE),要考虑1和2吗?
查看原帖
四个(THE),要考虑1和2吗?
323497
python_sainiao楼主2020/5/23 15:34
n=int(input())
s=0
def su(t):
	k=0
	for i in range(2,t):
		if t%i==0:
			k=1
			break
	if k==0:
		return True
	else:
		return False
for i in  range(2,n):
    for j in range(2,n):
        if((su(i))and(su(j)))and(i*j==n):
           s=max(i,j)
print(s)
2020/5/23 15:34
加载中...