Here the outer sequence is consecutive squares, and the inner sequence is primes so the next-in-sequence element is 7 (D).