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!)
A070245 Smallest palindromic prime with digit sum = n, or 0 if no such prime exists. 2
0, 2, 3, 0, 5, 0, 7, 10601, 0, 181, 191, 0, 373, 383, 0, 727, 13931, 0, 757, 929, 0, 787, 797, 0, 17971, 39293, 0, 19891, 19991, 0, 77377, 76667, 0, 78487, 79397, 0, 77977, 78887, 0, 97879, 79997, 0, 1987891, 1988891, 0, 1998991, 3799973, 0, 3899983 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
a(3k) = 0 for k>1 because if the digital sum is equal to a multiple of 3, then the number is divisible by 3. a(4) = 0 because any palindromic number whose digital sum is 4 is divisible by a number of the form 10^k + 1 for some k.
LINKS
MATHEMATICA
a = Table[0, {75}]; Do[p = IntegerDigits[Prime[n]]; If[ Reverse[p] == p, q = Plus @ @ p; If[ a[[q]] == 0 && q < 76, a[[q]] = FromDigits[p]]], {n, 1, 10^7}]
CROSSREFS
Cf. A002385.
Sequence in context: A071376 A064502 A082809 * A243868 A066398 A138197
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, May 05 2002
EXTENSIONS
Edited, corrected and extended by Robert G. Wilson v, May 06 2002
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 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)