OFFSET
1,1
COMMENTS
Interestingly, prime(12) = 37 and both 37 - 12 = 25 and 37 + 12 = 49 are squares. Is there another such n?
There is no other such n up through the first 15,000 terms of the sequence. - Harvey P. Dale, Mar 26 2026
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
Select[2*Range[200], !PrimeQ[Prime[#]+#]&&!PrimeQ[Prime[#]-#]&] (* Harvey P. Dale, Dec 24 2013 *)
Select[Range[2, 250, 2], AllTrue[Prime[#]+{#, -#}, CompositeQ]&] (* Harvey P. Dale, Mar 26 2026 *)
PROG
(PARI) {forstep(i=2, 220, 2, p=prime(i); if(!isprime(p-i)&&!isprime(p+i), print1(i", ")))}
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Jan 04 2013
STATUS
approved
