OFFSET
1,1
COMMENTS
Primes in A032924. - Robert Israel, Dec 28 2018
The analog "primes without digit 2 in ternary" is A077717. There is no prime > 2 not having the digit 1 in ternary, since then the number is divisible by 2. - M. F. Hasler, Feb 15 2023
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
41 = 1112_3, which contains no 0.
MAPLE
select(t -> isprime(t) and not(has(convert(t, base, 3), 0)), [2, seq(i, i=5..10000, 2)]); # Robert Israel, Dec 28 2018
PROG
(PARI) dec3(s)=while(s>0, if(s%3==0, return(0), s=floor(s/3))); return(1)
forprime(i=1, 20000, if(dec3(i)==1, print1(i, ", "), ))
(Python)
[p for p in range(1888) if is_A082555(n)] # M. F. Hasler, Feb 15 2023
CROSSREFS
Cf. A077717 (primes that are the sum of distinct powers of 3 <=> base-3 representation does not contain a digit 2).
KEYWORD
base,nonn
AUTHOR
Randy L. Ekl, May 03 2003
STATUS
approved