OFFSET
1,1
EXAMPLE
97 and 101 are prime numbers; 98 = 2 * 7^2, 99 = 3^2 * 11 and 100 = 2^2 * 5^2 are 3 consecutive nonsquarefree numbers, so 97 is a term.
349 and 353 are prime numbers; 350 = 2 * 5^2 * 7, 351 = 3^3 * 13, 352 = 2^5 * 11 are 3 consecutive nonsquarefree numbers, so 349 is a term.
MATHEMATICA
Select[Partition[Prime[Range[6000]], 2, 1], Differences[#] == {4} && AllTrue[Range[First[#] + 1, Last[#] - 1], ! SquareFreeQ[#1] &] &][[;; , 1]] (* Amiram Eldar, Oct 08 2023 *)
PROG
(PARI) isok(p) = isprime(p) && (nextprime(p+1) - p == 4) && (sum(k=1, 3, issquarefree(p+k)) == 0); \\ Michel Marcus, Oct 08 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Massimo Kofler, Oct 08 2023
STATUS
approved