%I M1961 N0776 #33 Feb 01 2022 01:33:28
%S 2,10,12,21,102,111,122,201,212,1002,1011,1101,1112,1121,1202,1222,
%T 2012,2021,2111,2122,2201,2221,10002,10022,10121,10202,10211,10222,
%U 11001,11012,11201,11212,12002,12011,12112,12121,12211,20001,20012,20102,20122,20201
%N Primes in ternary.
%C Primes written in base 3.
%D Archimedeans Problems Drive, Eureka, 23 (1960), 23.
%D N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
%D N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
%H T. D. Noe, <a href="/A001363/b001363.txt">Table of n, a(n) for n = 1..847</a>
%F a(n) = A007089(A000040(n)). - _Jonathan Vos Post_, Sep 09 2006
%t Table[FromDigits[IntegerDigits[Prime[n], 3]], {n, 50}] (* _T. D. Noe_, Jun 28 2012 *)
%o (PARI) a(n)=subst(Pol(digits(prime(n),3)),'x,10) \\ _Charles R Greathouse IV_, Nov 06 2013
%Y Analogs in other bases: A004676 (base 2), A001363 (base 3), A004678 (base 4), A004679 (base 5), A004680 (base 6), A004681 (base 7), A004682 (base 8), A004683 (base 9), A000040 (base 10), A004684 (base 11).
%Y Cf. A007089, A072805 (primes of form 4k+3 written in base 3).
%K base,nonn,easy
%O 1,1
%A _N. J. A. Sloane_
%E More terms from _James A. Sellers_, May 01 2000