login
Primes that contain only the digits (1, 4, 5).
2

%I #9 Sep 08 2022 08:46:13

%S 5,11,41,151,541,1151,1451,1511,4111,4441,4451,5441,11411,11551,14411,

%T 14551,15451,15511,15541,15551,41141,41411,44111,45541,51151,51511,

%U 51551,54151,54541,55411,55441,55511,55541,114451,115151,141511,141551,144451,144511

%N Primes that contain only the digits (1, 4, 5).

%C A020452 and A020453 are subsequences.

%H Alois P. Heinz, <a href="/A260268/b260268.txt">Table of n, a(n) for n = 1..10000</a>

%t Select[Prime[Range[3 10^4]], Complement[IntegerDigits[#], {1, 4, 5}]=={} &]

%o (Magma) [p: p in PrimesUpTo(4*10^5) | Set(Intseq(p)) subset [1, 4, 5]];

%Y Cf. similar sequences listed in A260266.

%Y Cf. A020452, A020453.

%K nonn,easy,base

%O 1,1

%A _Vincenzo Librandi_, Jul 23 2015