OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..9000
EXAMPLE
107 is in the sequence because 7^2=49 and 1049 is a prime.
449 is in the sequence because 9^2=81 and 4481 is a prime.
MATHEMATICA
selQ[p_] := (id = IntegerDigits[p]; id1 = Most[id]; id2 = Last[id]^2 // IntegerDigits; p2 = Join[id1, id2] // FromDigits; PrimeQ[p2]); Select[Array[Prime, 100], selQ] (* Jean-François Alcover, Jul 04 2014 *)
PROG
(Magma) r:=func<i | Seqint(Intseq(Intseq(i)[1]^2) cat Intseq(Floor(i/10)))>; [p: p in PrimesUpTo(500) | IsPrime(r(p))]; // Bruno Berselli, Jul 04 2014
(PARI) lista(nn) = {forprime(p=2, nn, d = p % 10; if (isprime(eval(concat(Str(p\10), Str(d^2)))), print1(p, ", ")); ); } \\ Michel Marcus, Jul 04 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Vincenzo Librandi, Jul 02 2014
STATUS
approved