A260266 Primes having only {0, 1, 4} as digits.
11, 41, 101, 401, 4001, 4111, 4441, 10111, 10141, 11411, 14011, 14401, 14411, 40111, 41011, 41141, 41411, 44041, 44101, 44111, 100411, 101111, 101141, 101411, 110441, 114001, 114041, 140111, 140401, 140411, 141041, 141101, 400441, 401101, 401411, 404011
Offset: 1
Links
Crossrefs
Programs
-
Magma
[p: p in PrimesUpTo(5*10^5) | Set(Intseq(p)) subset [1, 4, 0]];
-
Mathematica
Select[Prime[Range[4 10^4]], Complement[IntegerDigits[#], {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
M. F. Hasler, Jul 25 2015
Comments