OFFSET
1,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..1000
MATHEMATICA
Select[Prime[Range[2 10^4]], Complement[IntegerDigits[#], {2, 7, 9}] == {} &]
PROG
(Magma) [p: p in PrimesUpTo(2*10^5) | Set(Intseq(p)) subset [2, 7, 9]];
(Python)
from gmpy2 import is_prime
from itertools import product
A261182_list = [int(''.join(d)) for l in range(1, 10) for d in product('279', repeat=l) if is_prime(int(''.join(d)))] # Chai Wah Wu, Aug 11 2015
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Vincenzo Librandi, Aug 11 2015
STATUS
approved