login

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”).

A029973
Primes that are palindromic in base 5.
7
2, 3, 31, 41, 67, 83, 109, 701, 911, 1091, 1171, 1277, 1327, 1667, 1847, 2083, 2213, 2293, 2423, 2473, 2579, 2659, 2789, 2969, 3049, 16001, 16651, 19531, 20431, 21481, 23311, 23561, 24611, 25391, 26041, 27091, 28921, 30871, 31121
OFFSET
1,1
MATHEMATICA
f[n_]:=FromDigits[RealDigits[n, 5][[1]]]==FromDigits[Reverse[RealDigits[n, 5][[1]]]]; lst={}; Do[p=Prime[n]; If[f[p], AppendTo[lst, p]], {n, 8!}]; lst (* Vladimir Joseph Stephan Orlovsky, Aug 10 2009 *)
CROSSREFS
Sequence in context: A155056 A110456 A128348 * A344736 A347332 A378868
KEYWORD
nonn,base
STATUS
approved