|
Search: id:A083982
|
|
|
| A083982 |
|
Smallest palindromic prime containing the digit string of n. |
|
+0 4
|
|
| 101, 11, 2, 3, 11411, 5, 10601, 7, 181, 191, 101, 11, 12421, 131, 11411, 151, 16061, 17471, 181, 191, 30203, 12421, 72227, 32323, 12421, 1250521, 36263, 727, 12821, 929, 10301, 131, 32323, 13331, 14341, 353, 16361, 373, 383, 13931, 30403, 11411
(list; graph; listen)
|
|
|
OFFSET
|
0,1
|
|
|
EXAMPLE
|
1311131 contains the palindrome 111.
|
|
MATHEMATICA
|
f[n_] := Block[{k = 0, s = ToString[n]}, While[ !PrimeQ[k] || FromDigits[ Reverse[ IntegerDigits[k]]] != k || StringPosition[ ToString[k], s] == {}, k++ ]; k]; Table[ f[n], {n, 0, 41}] - Robert G. Wilson v (rgwv(AT)rgwv.com), Jun 28 2003
|
|
CROSSREFS
|
Cf. A002113, A085054.
Sequence in context: A085054 A084045 A085419 this_sequence A029948 A029949 A083152
Adjacent sequences: A083979 A083980 A083981 this_sequence A083983 A083984 A083985
|
|
KEYWORD
|
base,nonn
|
|
AUTHOR
|
Amarnath Murthy and Meenakshi Srikanth (amarnath_murthy(AT)yahoo.com), May 22 2003
|
|
EXTENSIONS
|
Corrected and extended by Ray Chandler (rayjchandler(AT)sbcglobal.net), Jun 11 2003
Edited by N. J. A. Sloane (njas(AT)research.att.com), Nov 01 2008 at the suggestion of R. J. Mathar
|
|
|
Search completed in 0.002 seconds
|