fork(13) download
  1. lst=[]
  2. a=int(input())
  3. for i in range(2,a):
  4. for j in range(2,i):
  5. if i%j==0:
  6. break
  7. else:
  8. lst.append(i)
  9.  
  10. for i in lst:
  11. for j in lst:
  12. if i+j==a:
  13. break
  14. if i+j==a:
  15. break
  16. print(i,j)
Success #stdin #stdout 0.02s 9936KB
stdin
102
stdout
5 97