OFFSET
1,1
LINKS
Michel Lagneau, Michael De Vlieger and Robert G. Wilson v, Table of n, a(n) for n = 1..1125
MATHEMATICA
f[n_] := Block[{k = 0, p = {}, r = 7(10^n - 1)/9, s = Range@ 10 - 8}, While[k < n, AppendTo[p, Select[r + 10^k*s, PrimeQ]]; k++]; p = Min@ Flatten@ p]; f[1] = 2; f[2] = 17; Array[f, 20]
Table[Min[Select[FromDigits/@Flatten[Permutations/@Table[Join[ {n}, PadRight[ {}, k, 7]], {n, 0, 9}], 1], IntegerLength[#]==k+1&&PrimeQ[#]&]], {k, 0, 20}] (* Harvey P. Dale, Jan 23 2021 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved