OFFSET
2
LINKS
Robert Israel, Table of n, a(n) for n = 2..1940
MAPLE
f:= n -> nops(select(isprime, [seq(n^k-k^n, k=2..n-1)])):
map(f, [$2..100]); # Robert Israel, Sep 24 2020
PROG
(PARI) a(n) = my(i=0); for(k=2, n-1, if(ispseudoprime(n^k+k^n), i++)); i
CROSSREFS
KEYWORD
nonn
AUTHOR
Felix Fröhlich, Mar 06 2018
STATUS
approved