login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A244555 Primes which remain prime when the last digit is replaced by its square. 2
11, 13, 17, 19, 23, 29, 31, 37, 41, 47, 53, 61, 71, 73, 83, 89, 101, 103, 107, 127, 131, 139, 149, 151, 157, 173, 181, 191, 193, 197, 211, 223, 229, 233, 239, 241, 251, 257, 263, 271, 277, 281, 307, 311, 331, 347, 353, 359, 373, 383, 389, 401, 421, 431, 433 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
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
Cf. A030430 (subsequence).
Sequence in context: A135779 A135778 A078875 * A052293 A038842 A293660
KEYWORD
nonn,base
AUTHOR
Vincenzo Librandi, Jul 02 2014
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 03:15 EDT 2024. Contains 371964 sequences. (Running on oeis4.)