import sys n=int(sys.stdin.readline().strip()) sp=n//2 l=range(sp+2)[::-1] check=1 su=0 j=2 def chech_su(i): check=1 j=2 if i==2 or i==3: return 'su' while check: if i%j!=0: j+=1 if i-1==j: return i break else: check=0 return 'su' if n==4: out=[2,2] else: for i in l: temp=chech_su(i) if str(temp).isalpha(): continue else: temp1=chech_su(n-temp) if str(temp1).isalpha(): continue else: out=[temp,temp1] break out.sort() for i in out: print(i)
标签:return,temp,su,else,偶数,素数,HJ60,check,out From: https://www.cnblogs.com/tanyuanqing/p/17215955.html