Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #21 Aug 11 2024 14:41:31
%S 2,151,757,93739,7949497,112969211
%N Primes that are palindromic in bases 3 and 10.
%H P. De Geest, <a href="https://www.worldofnumbers.com/palpri.htm">World!Of Palindromic Primes</a>
%e 757_10 = 1001001_3. - _Jon E. Schoenfield_, Apr 10 2021
%t f[n_,b_]:=FromDigits[RealDigits[n,b][[1]]]==FromDigits[Reverse[RealDigits[n,b][[1]]]]; lst={};Do[p=Prime[n];If[f[p,3]&&f[p,10],AppendTo[lst,p]],{n,8!}];lst (* _Vladimir Joseph Stephan Orlovsky_, Sep 25 2009 *)
%t Select[Prime[Range[65*10^5]],PalindromeQ[#]&&IntegerDigits[#,3]==Reverse[ IntegerDigits[ #,3]]&] (* _Harvey P. Dale_, Jul 20 2024 *)
%Y Cf. A002385, A007633.
%K nonn,hard,base
%O 1,1
%A _Patrick De Geest_, Aug 15 1998