These are the last terms in a set of 4 diagonals (comprising the 24 points on the circumferance of a circle).

EXAMPLE

a(1)=5637 because that is the last term of 24, none of which are prime. In A161190 it would be indicated with a zero (0). However, the first set of 4 diagonals with no prime sum does not occur until index 88.