Definition. A magic tesseract is a four-dimensional array, equivalent to the magic cube and magic square of lower dimensions, containing the numbers 1, 2, 3, …, m^4 arranged in such a way that the sum of the numbers in each of the m^3 rows, m^3 columns, m^3 pillars, m^3 files and in the eight major quadragonals passing through the center and joining opposite corners is a constant sum S, called the magic sum, which is given by: S = m(m^4+1)/2 and where m is called the order of the tesseract.
I found a magic tesseract of order 3 of distinct positive integers. Now I want to find a magic tesseract of order 3 of distinct primes.
I got the general formula magic tesseract of order 3:
x10=s-x1-x6, x11=s-x2-x7, x12=s-x4-x8, x13=s-x5-x9, x14=(10*s)/3-2*x1-x2-x4-x5-x6-x7-x8-x9, x15=-((2*s)/3)+x5+x7+x9, x16=-((2*s)/3)+x5+x8+x9, x17=(4*s)/3-2*x5-x9, x18=-((2*s)/3)+x7+x8+x9, x19=(4*s)/3-2*x7-x9, x20=-((5*s)/3)+2*x1+x2+x4+x5+x6, x21=s/3-x5+x7, x22=s/3-x5+x8,
y1=s-x1-x2, y2=s-x4-x5, y3=s-x1-x4, y4=s-x2-x5, y5=-s+x1+x2+x4+x5, y6=s-x6-x7, y7=s-x8-x9, y8=s-x6-x8, y9=s-x7-x9, y10=-s+x6+x7+x8+x9, y11=s-x10-x11, y12=s-x12-x13, y13=s-x10-x12, y14=s-x11-x13, y15=-s+x10+x11+x12+x13, y16=s-x14-x15, y17=s-x18-x19, y18=4s/3-2*x18-x19, y19=s-20-x21,
The formula obtained for this scheme:
s=3k/2
k/2 - prime number