OFFSET
1,1
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
N. Fernandez, An order of primeness, F(p)
N. Fernandez, An order of primeness [cached copy, included with permission of the author]
FORMULA
a(n) = prime(A007821(n)). - Juri-Stepan Gerasimov, Aug 11 2008
a(n) ~ A006450(n) ~ n log^2 n. - Charles R Greathouse IV, Apr 29 2015
EXAMPLE
For these primes S(p) is a prime but S(S(p)) is not. E.g. S(17)=7, S(7)=4.
MAPLE
MATHEMATICA
Nest[ Prime, Select[ Range[70], !PrimeQ[ # ] &], 2] (* Robert G. Wilson v, Mar 15 2004 *)
PROG
(PARI) is(n)=my(p=primepi(n)); isprime(p) && !isprime(primepi(p)) && isprime(n) \\ Charles R Greathouse IV, Apr 29 2015
CROSSREFS
Cf. A049076, A007821, A049079-A049081, A058322, A058324-A058328, A093046, A006450, A018252, A236542.
KEYWORD
nonn
AUTHOR
EXTENSIONS
Edited by N. J. A. Sloane, Aug 29 2008 at the suggestion of R. J. Mathar
Spelling/notation corrections by Charles R Greathouse IV, Mar 18 2010
STATUS
approved