OFFSET
1,1
COMMENTS
See A090714 for a similar sequence whose definition works "in the opposite direction".
LINKS
Robert Price, Table of n, a(n) for n = 1..3276
EXAMPLE
The decimal representation of prime 23, considered as a number written in base 19, stands for 2*19 + 3 = 41, which is also prime, therefore 23 is in the sequence.
MATHEMATICA
Select[Prime[Range[300]], PrimeQ[FromDigits[IntegerDigits[#], 19]] &] (* Alonso del Arte, Jan 04 2014 *)
PROG
(PARI) is_A235144(p, b=19)={my(d=digits(p)); isprime(vector(#d, i, b^(#d-i))*d~)&&isprime(p)} \\ This code allows one to produce similar sequences for other bases b > 9 (which can be given as optional 2nd argument), but does not do the required check for bases b < 10.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
M. F. Hasler, Jan 03 2014
STATUS
approved
