|
|
A038580
|
|
Primes with indices that are primes with prime indices.
|
|
42
|
|
|
5, 11, 31, 59, 127, 179, 277, 331, 431, 599, 709, 919, 1063, 1153, 1297, 1523, 1787, 1847, 2221, 2381, 2477, 2749, 3001, 3259, 3637, 3943, 4091, 4273, 4397, 4549, 5381, 5623, 5869, 6113, 6661, 6823, 7193, 7607, 7841, 8221, 8527, 8719, 9319, 9461, 9739
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
a(n) = prime(prime(prime(n))).
|
|
MAPLE
|
a:= ithprime@@3;
# For Maple code for the prime/nonprime compound sequences (listed in cross-references) see A003622. - N. J. A. Sloane, Mar 30 2016
|
|
MATHEMATICA
|
Table[ Prime[ Prime[ Prime[ n ] ] ], {n, 1, 60} ]
|
|
PROG
|
(PARI) list(lim)=my(v=List(), q, r); forprime(p=2, lim, if(isprime(q++) && isprime(r++), listput(v, p))); Set(v) \\ Charles R Greathouse IV, Feb 14 2017
(Magma) [NthPrime(NthPrime(NthPrime(n))): n in [1..50]]; // Vincenzo Librandi, Jul 17 2016
|
|
CROSSREFS
|
Let A = primes A000040, B = nonprimes A018252. The 2-level compounds are AA = A006450, AB = A007821, BA = A078782, BB = A102615. The 3-level compounds AAA, AAB, ..., BBB are A038580, A049078, A270792, A102617, A270794, A270795, A270796, A102616.
|
|
KEYWORD
|
easy,nice,nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|