OFFSET
1,1
COMMENTS
Equivalently: terms of A036953 read in base 3 (and written in base 10). - M. F. Hasler, Jul 25 2015
Equivalently, k such that A007089(k), read literally as a decimal number, is a prime. - N. J. A. Sloane, Feb 17 2023
LINKS
FORMULA
a(n) == 1 (mod 3) for all n > 1. - M. F. Hasler, Jul 25 2015
EXAMPLE
a(n) = 313 is 102121{3}, and 102121{10} is prime.
MATHEMATICA
FromDigits[#, 3]&/@Select[Tuples[{0, 1, 2}, 6], PrimeQ[FromDigits[#]]&] (* Harvey P. Dale, Mar 27 2021 *)
PROG
(PARI) is(n)=(n%3==1||n==2)&&isprime((n=digits(n, 3))*vectorv(#n, i, 10^(#n-i))) \\ M. F. Hasler, Jul 25 2015
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Patrick De Geest, Jan 04 1999
EXTENSIONS
Offset corrected to 1 and minor edits by M. F. Hasler, Jul 25 2015
STATUS
approved