Post History
Python 3.8, 112 bytes def f(x):y=[i for i in range(2,x)if not[j for j in range(2,i)if i%j<1]];return[(q,x-q)for q in y if x-q in y][0] Try it online!
Answer
#1: Initial revision
# [Python 3.8], 112 bytes <!-- language-all: lang-python --> def f(x):y=[i for i in range(2,x)if not[j for j in range(2,i)if i%j<1]];return[(q,x-q)for q in y if x-q in y][0] [Try it online!][TIO-l0h0232y] [Python 3.8]: https://docs.python.org/3.8/ [TIO-l0h0232y]: https://tio.run/##bcrBCgIhFIXhfU9xNzEKEzgWEVPzJOIiSOu6cFQMlOjZbRwIZuHu8J3f5fia7fHiQikPpUGTRMc8CQQ9B0BAC@Fun4rwPlHUYOcozPqZ7Yf1w725DVJeg4rvYAXxfTp4Wltf2wxLs8i6pWCyuIA2Et19NDlRmODb0d3Gzg3jrXDgrKWM/bn8AA "Python 3.8 (pre-release) – Try It Online"