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

 


Product of digits of n-th palindromic prime.
4

%I #10 Jun 17 2017 13:04:36

%S 2,3,5,7,1,0,3,5,8,9,9,45,63,72,98,245,392,441,81,162,0,0,0,3,4,16,28,

%T 32,27,72,81,48,112,100,125,0,108,180,216,196,441,64,256,243,648,729,

%U 0,0,0,0,0,0,45,108,144,405,720,1152,0,225,675,1575,648

%N Product of digits of n-th palindromic prime.

%H Shyam Sunder Gupta, <a href="/A230200/b230200.txt">Table of n, a(n) for n = 1..5953</a>

%e a(6) = 0, since product of digits of 6th palindromic prime, that is, 101 is 0.

%t a = {}; Do[z = n*10^(IntegerLength[n] - 1) + FromDigits@Rest@Reverse@IntegerDigits[n]; If[PrimeQ[z], s = Apply[Times, IntegerDigits[z]]; AppendTo[a, s]], {n, 1, 10^5}]; Insert[a, 1, 5]

%t Times@@IntegerDigits[#]&/@Select[Prime[Range[5000]],PalindromeQ] (* Requires Mathematica version 10 or later *) (* _Harvey P. Dale_, Jun 17 2017 *)

%Y Cf. A002385, A007954, A053666.

%K nonn,base,less

%O 1,1

%A _Shyam Sunder Gupta_, Oct 11 2013

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | 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 20 02:41 EDT 2024. Contains 376016 sequences. (Running on oeis4.)