OFFSET
1,1
COMMENTS
All terms are congruent to 1 or 3 (mod 4) (except for the first one) and congruent to 1 or 5 (mod 6) (except for the first two); although not all terms are prime, as e.g., 55, 77, 91, 115, 121, 133, 169, 203, ... - M. F. Hasler, Jul 25 2015
Numbers (not necessarily prime) which are prime if written in base 4 and reinterpreted in base 10. Numbers n such that A007090(n) is in A000040. - R. J. Mathar, Jul 28 2015
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
55 is in the sequence because 55_10 = 313_4 and 313_10 is prime.
313 is in the sequence because 313_10 = 10321_4 and 10321_10 is prime.
31 is not in the sequence because 31_10 = 133_4 and 133_10 = 7*19 is not prime.
MATHEMATICA
FromDigits[IntegerDigits[#], 4]&/@Select[Prime[Range[2000]], Max[ IntegerDigits[ #]]<4&] (* Harvey P. Dale, May 02 2015 *)
PROG
(PARI) is(n)=isprime(sum(i=1, #n=digits(n, 4), 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