OFFSET
1,1
LINKS
K. D. Bajpai, Table of n, a(n) for n = 1..10000
EXAMPLE
661 is in the sequence because 661 = prime(121): Concatenations of [661.121 = 661121] and concatenation of [121.661 = 121661] which are also primes.
1051 is in the sequence because 1051 = prime(177): Concatenation of [1051.177 = 1051177] and concatenation of [177.1051 = 1771051] which are also primes.
MAPLE
MATHEMATICA
Select[Prime [Range[5000]], PrimeQ[FromDigits[Join[IntegerDigits [PrimePi [#]], IntegerDigits [#]]]] && PrimeQ [FromDigits [Join [IntegerDigits[#], IntegerDigits [PrimePi [#]]]]] &]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
K. D. Bajpai, Jun 13 2014
STATUS
approved