OFFSET
1,1
LINKS
Patrick De Geest, Subsets of palindromic triangulars
MATHEMATICA
palQ[n_]:=Reverse[x=IntegerDigits[n]]==x; t={}; c=0; Do[If[palQ[n*(n+1)/2], c=c+1; If[PrimeQ[n], AppendTo[t, c]]], {n, 10^3}]; t (* Jayanta Basu, May 14 2013 *)
PROG
(PARI) ispal(n)=n=digits(n); for(i=1, #n\2, if(n[i]!=n[#n+1-i], return(0))); 1
for(k=1, 1e9, if(ispal(k*(k+1)/2), n++; if(isprime(k), print1(n", ")))) \\ Charles R Greathouse IV, May 15 2013
CROSSREFS
KEYWORD
nonn,base,hard,more
AUTHOR
N. J. A. Sloane, Jun 14 2003
STATUS
approved
