OFFSET
1,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000 (first 3275 terms from Vincenzo Librandi)
MATHEMATICA
Select[Prime[Range[120]], DigitCount[#, 10, 3]==0&&DigitCount[#, 10, 5]==0&]
PROG
(Magma) [p: p in PrimesUpTo(700) | not 3 in Intseq(p) and not 5 in Intseq(p) ];
(PARI) isok(p) = if (isprime(p), my(d=digits(p)); (#select(x->(x==3), d)==0) && (#select(x->(x==5), d)==0)); \\ Michel Marcus, Feb 10 2025
(Python)
from itertools import count, islice
from sympy import isprime
def A380906_gen(): # generator of terms
return filter(isprime, (int(oct(n)[2:].translate({51:52, 52:54, 53:55, 54:56, 55:57})) for n in count(1)))
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Vincenzo Librandi, Feb 09 2025
STATUS
approved
