OFFSET
1,1
COMMENTS
The numbers of terms that do not exceed the (10^k)-th prime, for k = 1, 2, ..., are 6, 51, 532, 5349, 53500, 534963, 5351408, 53510238, 535103289, 5351081043, ... . It appears that the relative asymptotic density of this sequence within the primes exists and equals Product_{p odd prime} (1-2/(p*(p-1))) = 0.535107012... (A271780). - Amiram Eldar, Aug 20 2026
LINKS
John Cerkan, Table of n, a(n) for n = 1..10000
MATHEMATICA
lst={}; Do[p=Prime[n]; If[SquareFreeQ[p-4]&&SquareFreeQ[p+4], AppendTo[lst, p]], {n, 6!}]; lst
(* Alternative: *)
Select[Prime[Range[150]], AllTrue[#+{4, -4}, SquareFreeQ]&] (* Harvey P. Dale, Jun 15 2016 *)
PROG
(PARI) lista(nn) = forprime(p=2, nn, if (issquarefree(p-4) && issquarefree(p+4), print1(p, ", "))); \\ Michel Marcus, Jul 06 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Jan 21 2009
STATUS
approved