login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A089968
Decimal primes whose decimal representation in base 16 is also prime.
1
2, 3, 5, 7, 17, 19, 23, 41, 67, 71, 83, 89, 97, 103, 113, 131, 137, 151, 257, 263, 311, 313, 337, 359, 401, 409, 547, 563, 569, 577, 593, 599, 617, 631, 641, 643, 659, 787, 823, 839, 857, 883, 919
OFFSET
1,1
LINKS
EXAMPLE
43 is prime in decimal and 43 base 16 is 67 which is also prime in decimal.
MATHEMATICA
b16Q[n_]:= Module[{idn16=IntegerDigits[n, 16]}, Max[idn16]<10&&PrimeQ[FromDigits[idn16]]]; Select[Prime[Range[PrimePi[2000]]], b16Q] (* Vincenzo Librandi, Apr 18 2013 *)
CROSSREFS
Sequence in context: A090725 A276141 A214588 * A164060 A356405 A113029
KEYWORD
base,nonn
AUTHOR
Cino Hilliard, Jan 18 2004
STATUS
approved