A030522 Product of first n palindromic primes minus 1.
1, 5, 29, 209, 2309, 233309, 30563609, 4615105109, 835334024909, 159548798757809, 49938774011194529, 17628387225951669089, 6575388435279972570569, 2518373770712229494528309
Offset: 1
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..199
Programs
-
Mathematica
palQ[n_]:=Module[{idn=IntegerDigits[n]},idn==Reverse[idn]]; #-1&/@Rest[ FoldList[ Times,1,Select[Prime[Range[200]],palQ]]] (* Harvey P. Dale, Jun 21 2011 *) FoldList[Times,Select[Prime[Range[100]],PalindromeQ]]-1 (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Dec 29 2018 *)
Extensions
Corrected and extended by Larry Reeves (larryr(AT)acm.org), Sep 25 2000
Corrected by D. S. McNeil, Aug 20 2010
Comments