from isPrime import *
from math import sqrt
f=[]
for i in range(100000):
if isPrime(i):
f.append(i)
for i in range(5,100000,2):
x=i
if isPrime(x):
continue
flag=False
for j in range(len(f)):
if f[j]>=x:
break
tp1=x-f[j]
if tp1%2!=0:
continue
tp1=tp1//2
w=int(sqrt(tp1))
if w*w==tp1:
flag=True
break
if flag==False:
print(i)
from math import sqrt
f=[]
for i in range(100000):
if isPrime(i):
f.append(i)
for i in range(5,100000,2):
x=i
if isPrime(x):
continue
flag=False
for j in range(len(f)):
if f[j]>=x:
break
tp1=x-f[j]
if tp1%2!=0:
continue
tp1=tp1//2
w=int(sqrt(tp1))
if w*w==tp1:
flag=True
break
if flag==False:
print(i)