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!)
A259744 Smallest prime p such that, for every positive integer k <= n, the concatenation of p, prime(k)^2 and reverse(p) is prime. 0
11, 17, 1097, 7949, 780587, 123638027, 3259714649, 76526081651 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
a(8) found by Hans Havermann.
LINKS
Carlos Rivera Puzzles, Puzzle 788. P&p(i)^2&RP
EXAMPLE
a(3)=1097 because 109747901 (1097&2^2&7901) and 109797901 (1097&3^2&7901) and 1097257901 (1097&5^2&7901) are prime numbers, and 1097 is the smallest prime for which this is the case.
MATHEMATICA
f[n_, k_] := FromDigits[Join[
IntegerDigits[n], IntegerDigits[Prime[k]^2],
Reverse[IntegerDigits[n]]]]
a[n_] := Module[{p = 2, k = 1},
While[k <= n,
If[PrimeQ[f[p, k]], k++, p = NextPrime[p]; k = 1];
];
Return[p]
](* Kellen Myers, Aug 16 2015 , note this is very slow *)
CROSSREFS
Sequence in context: A132092 A226258 A056705 * A065706 A078874 A257169
KEYWORD
nonn,base,more
AUTHOR
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 September 4 02:28 EDT 2024. Contains 375679 sequences. (Running on oeis4.)