OFFSET
1,1
COMMENTS
This sequence and the sequence of resulting primes prime(q)+q+1 (17,709, 18433, 20231, 23251, 29269, 32323, 42181, ...) are subsequences of A006450, the prime indexed primes.
LINKS
N. Fernandez, An order of primeness, F(p)
N. Fernandez, An order of primeness [cached copy, included with permission of the author]
EXAMPLE
a(1) is 5 because 5 = prime(3) and prime(5) + 5 + 1 = 17 = prime(7), and no smaller prime has this property.
MAPLE
N:=300000:
for n from 1 to N do
if isprime(n) then q:=ithprime(n);
Z:=numtheory[pi](n);
P:=q+n+1;
R:=numtheory[pi](P);
if isprime(Z) and isprime(P) and isprime(R) then print(n);
end if:
end if:
end do:
PROG
(PARI) isok(p) = isprime(p) && isprime(primepi(p)) && isprime(q=prime(p)+p+1) && isprime(primepi(q)); \\ Michel Marcus, Sep 19 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
David James Sycamore, Aug 22 2018
STATUS
approved