OFFSET
1,2
EXAMPLE
a(20) = 1036 because 40*5^k+1 is prime for k=1036 and not prime for k=1..1035.
MATHEMATICA
f[n_, k_] := 2 n*5^k + 1;
s[n_] := Select[Range[5000], PrimeQ[f[n, #]] &, 1];
Flatten[Table[s[n], {n, 1, 500}]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Oct 31 2024
STATUS
approved