reviewed
approved
reviewed
approved
proposed
reviewed
editing
proposed
Primes p such that p+-2 and p+-3 are NotSquarefreenot squarefree.
approved
editing
editing
approved
Select[Prime[Range[10000]], NoneTrue[#+{-3, -2, 2, 3}, SquareFreeQ]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Aug 27 2019 *)
approved
editing
_Vladimir Joseph Stephan Orlovsky (4vladimir(AT)gmail.com), _, Dec 20 2008
Primes p such that p+-2 and p+-3 are NotSquare-freeNotSquarefree.
nonn,new
nonn
Primes p such that p+-2 and p+-3 are NotSquare-free.
47, 1447, 1847, 3701, 6653, 11273, 14947, 15727, 17053, 18493, 21661, 24923, 26647, 29153, 32789, 33023, 38873, 39323, 42437, 42923, 44053, 47527, 47977, 49853, 52027, 52153, 56747, 56873, 59929, 71147, 74189, 79427, 80953, 99277, 99713
1,1
lst={}; Do[p=Prime[n]; If[ !SquareFreeQ[p-2]&&!SquareFreeQ[p+2]&&!SquareFreeQ[p-3]&&!SquareFreeQ[p+3], AppendTo[lst, p]], {n, 3*7!}]; lst
nonn,new
Vladimir Orlovsky (4vladimir(AT)gmail.com), Dec 20 2008
approved