OFFSET
1,1
LINKS
John Cerkan, Table of n, a(n) for n = 1..10000
MATHEMATICA
<<NumberTheory`NumberTheoryFunctions` lst={}; Do[p=Prime[n]; If[ !SquareFreeQ[p-4]&&!SquareFreeQ[p+4], AppendTo[lst, p]], {n, 7!}]; lst
Select[Prime[Range[1200]], NoneTrue[#+{4, -4}, SquareFreeQ]&] (* Harvey P. Dale, Jul 17 2024 *)
PROG
(PARI) lista(nn) = forprime(p=2, nn, if (! issquarefree(p-4) && ! issquarefree(p+4), print1(p, ", "))); \\ Michel Marcus, Jul 05 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Jan 21 2009
STATUS
approved