OFFSET
1,1
EXAMPLE
349 is a term because up to the next prime 353, tau(350) = 12, tau(351) = 8, tau(352) = 12, thus the smallest tau(k) = 8 and 8 is a cube (2^3).
379 is prime but not a term because up to the next prime 383, tau(380) = 12, tau(381) = 4, tau(382) = 4, thus the smallest tau(k) is 4 and 4 is not a cube.
PROG
(PARI) isok(p)=ispower(vecmin(apply(numdiv, [p+1..nextprime(p+1)-1])), 3);
forprime(p=3, 10000, if(isok(p), print1(p", ")))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Claude H. R. Dequatre, Sep 16 2022
STATUS
approved