OFFSET
1,1
COMMENTS
All terms end with a digit "1". - M. F. Hasler, Jul 26 2015
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
MATHEMATICA
Select[Prime[Range[4 10^4]], Complement[IntegerDigits[#], {1, 4, 0}]=={} &]
PROG
(Magma) [p: p in PrimesUpTo(5*10^5) | Set(Intseq(p)) subset [1, 4, 0]];
(PARI) A260266(n=50, show=0)={for(d=1, 1e9, my(t, u=vector(d, i, 10^(d-i))~); forvec(v=vector(d, i, [i==1||i==d, 1+(i<d)]), ispseudoprime(t=vector(d, i, v[i]^2)*u)||next; show&&print1(t", "); n--||return(t)))} \\ M. F. Hasler, Jul 25 2015
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Vincenzo Librandi, Jul 22 2015
STATUS
approved