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

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

%S 11,41,61,461,641,661,4111,4441,6661,11161,11411,14411,14461,16111,

%T 16141,16411,16661,41141,41161,41411,41611,41641,44111,44641,46141,

%U 46411,46441,61141,61441,64661,66161,111611,111641,114161,114641,114661,116141,116411

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

%C A020452 and A020454 are subsequences.

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

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

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

%Y Cf. similar sequences listed in A260266.

%Y Cf. A020452, A020454.

%K nonn,easy,base

%O 1,1

%A _Vincenzo Librandi_, Jul 23 2015