OFFSET
1,1
LINKS
Sean A. Irvine, Java program (github)
EXAMPLE
31 appears in this sequence because 31=2*2^(2*2)-1 and 31 is prime.
PROG
(PARI) lista(nn) = {my(k, n=2, v=List([]), x=4, y); while(x<nn, k=1; y=x-1; while(y<nn, if(ispseudoprime(y), listput(v, y)); k++; y=k*x^k-1); n++; x=n^n); Set(v); } \\ Jinyuan Wang, Mar 18 2020
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Eder Vanzei, Mar 17 2020
EXTENSIONS
Corrected by Michel Marcus and Jinyuan Wang, Mar 17 2020
STATUS
approved