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

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A083571 Numbers n such that A008509(n) is prime. 3
2, 3, 5, 10, 12, 72 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
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
Sequence in context: A050051 A252353 A241167 * A123090 A129281 A289536
KEYWORD
nonn,base,hard,more
AUTHOR
N. J. A. Sloane, Jun 14, 2003
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | 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 April 23 13:51 EDT 2024. Contains 371914 sequences. (Running on oeis4.)