The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A052493 Primes whose digits can be rearranged to give the initial terms of the decimal expansion of Pi. 1
 3, 13, 31, 431, 13451, 14153, 15413, 31541, 34511, 35141, 41351, 41513, 43151, 45131, 51341, 51413, 51431, 53411, 54311, 114593, 134591, 134951, 141359, 141539, 143159, 143519, 145139, 145193, 145391, 145931, 149153, 149351, 149531 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,1 COMMENTS There are no 4-digits terms in the sequence, since the first 4 decimals of Pi add up to 9, so they cannot form a prime. - Michel Marcus, Jan 07 2014 LINKS Giovanni Resta, Table of n, a(n) for n = 1..10000 Pi Day EXAMPLE 14153 can be rearranged to give 3[.]1415. MATHEMATICA Select[Union @@ (FromDigits /@ Permutations@ First@ RealDigits[Pi, 10, #] & /@ Range@ 8), PrimeQ] (* Giovanni Resta, Jan 07 2014 *) PROG (PARI) terms() = {v = [3, 1, 4, 1, 5, 9]; w = []; for (nb = 1, #v, for (i=0, nb!-1, perm = numtoperm(nb, i); val = sum(k=0, nb-1, v[perm[k+1]]*10^k); if (isprime(val), w = concat(w, val)); ); ); w = vecsort(w, , 8); for (i=1, #w, print1(w[i], ", ")); } \\ Michel Marcus, Jan 07 2014 CROSSREFS Cf. A000040, A000796. Sequence in context: A219971 A073337 A128067 * A279068 A247216 A301926 Adjacent sequences: A052490 A052491 A052492 * A052494 A052495 A052496 KEYWORD nonn,base AUTHOR G. L. Honaker, Jr., Mar 14 2000 EXTENSIONS More terms from Enoch Haga, Date: Mar 14, 2000 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.

Last modified May 22 17:21 EDT 2024. Contains 372758 sequences. (Running on oeis4.)