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

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

%S 2,3,23,223,233,263,2333,2633,2663,3323,3623,6263,6323,23333,23623,

%T 23633,23663,26263,26633,32233,32323,32363,32633,33223,33623,36263,

%U 62233,62323,62633,222323,223633,226663,232333,232363,232633,232663,233323,233663,236323

%N Primes that contain only the digits (2, 3, 6).

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

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

%o (Magma) [p: p in PrimesUpTo(300000) | Set(Intseq(p)) subset [2,3,6]];

%Y Cf. similar sequences listed in A260125.

%Y Cf. A020458 (a subsequence).

%K nonn,base,easy

%O 1,1

%A _Vincenzo Librandi_, Jul 17 2015