in reply to Not A Magic Square But Similar
GNU Prolog (gprolog)
Is that an answer to some question the OP asked?
Cheers - L~R