OFFSET
1,21
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
PROG
(PARI) A301295(n) = if(1==n, 0, my(k=0); while(!isprimepower(n+k) && !isprimepower(n-k), k++); (k)); \\ Antti Karttunen, Sep 25 2018
CROSSREFS
KEYWORD
nonn,look
AUTHOR
N. J. A. Sloane, Mar 24 2018
EXTENSIONS
More terms from Antti Karttunen, Sep 25 2018
STATUS
approved