OFFSET
1,1
COMMENTS
All the terms in this sequence are odd numbers.
LINKS
K. D. Bajpai, Table of n, a(n) for n = 1..10000
EXAMPLE
9 appears in the sequence because prime(9) || 9^2 = 2381 which is prime.
11 appears in the sequence because prime(11) || 11^2 = 31121 which is prime.
MAPLE
select(n -> andmap(isprime, parse(cat(ithprime(n), n^2))), [seq(n, n=1..5000)]);
MATHEMATICA
Select[Range[5000], PrimeQ[FromDigits[Flatten[{IntegerDigits[Prime[#]], IntegerDigits[#^2]}]]] &]
PROG
(PARI) for (n = 1, 1000, if(isprime(k=eval(Str(prime(n), n^2))), print1(n, ", ")))
(Magma) [n:n in[1..500]|IsPrime(m) where m is Seqint(Intseq(n^2) cat Intseq(NthPrime(n)))];
CROSSREFS
KEYWORD
nonn,base
AUTHOR
K. D. Bajpai, Jan 24 2016
STATUS
approved