OFFSET
1,1
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..10000
EXAMPLE
8 = 2^3 and 9 = 3^2. So 7 is a term.
24 = 2^3*3 and 25 = 5^2. So 23 is a term.
MATHEMATICA
Select[Prime[Range[400]], NoneTrue[#+{1, 2}, SquareFreeQ]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Apr 05 2019 *)
PROG
(PARI) isok(p) = isprime(p) && !issquarefree(p+1) && !issquarefree(p+2); \\ Michel Marcus, Sep 09 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Sep 08 2018
STATUS
approved