OFFSET
0,1
EXAMPLE
a(2) = 64 because 5^(5^2) - 64 = 298023223876953061 is prime.
MATHEMATICA
lst={}; Do[Do[p=5^(5^n)-k; If[PrimeQ[p], AppendTo[lst, k]; Break[]], {k, 2, 11!}], {n, 7}]; lst
Table[k=1; Monitor[Parallelize[While[True, If[PrimeQ[5^(5^n)-k], Break[]]; k++]; k], k], {n, 1, 7}]
y[n_] := Module[{x = 5^(5^n)}, x - NextPrime[x, -1]]; Array[y, 7]
PROG
(PARI) a(n) = my(x = 5^(5^n)); x - precprime(x);
CROSSREFS
KEYWORD
more,nonn
AUTHOR
J.W.L. (Jan) Eerland, Jul 25 2023
EXTENSIONS
a(0) prepended and a(7) from Michael S. Branicky, Aug 24 2024
STATUS
approved