OFFSET
0,1
LINKS
Sean A. Irvine, Table of n, a(n) for n = 0..50
MATHEMATICA
Do[k = 1; While[ !PrimeQ[k*10^n + 1] || !PrimeQ[k*10^n + 3] || !PrimeQ[k*10^n + 7] || !PrimeQ[k*10^n + 9], k++ ]; Print[k], {n, 0, 20} ]
lk[n_]:=Module[{k=1}, While[!AllTrue[k*10^n+{1, 3, 7, 9}, PrimeQ], k++]; k]; Array[lk, 40, 0] (* Harvey P. Dale, Sep 03 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Oct 14 2001
STATUS
approved