A106574 Indices n of perfect squares n^2 which are neither the sum nor the difference of two primes.
11, 17, 23, 25, 31, 41, 51, 53, 59, 65, 67, 73, 79, 83, 85, 87, 91, 95, 97, 101, 109, 113, 115, 125, 129, 133, 137, 141, 143, 149, 151, 153, 157, 159, 163, 165, 167, 175, 179, 181, 185, 187, 189, 193, 195, 197, 199, 201, 203, 207, 209, 213, 215, 221, 227, 229
Offset: 1
Examples
a(2)=17 because the second square which is nor the sum nor the difference of two primes (289=17^2) is the 17th one in the succession of the perfect squares (thus: index 17).
Formula
a(n) = sqrt(A106573(n)).
Extensions
Corrected and extended by Ray Chandler, May 12 2005