OFFSET
1,1
COMMENTS
This sequence is a subsequence of A107770.
LINKS
François Marques, Table of n, a(n) for n = 1..10000
EXAMPLE
6 is in the sequence since prime(6)=13 and 13-2=11 and 13^2-2=167 are both prime numbers.
PROG
(PARI) lista(n) = {my(l=List, k=1); while(#l<n, k++; if(isprime(prime(k)-2) && isprime(prime(k)^2-2), listput(l, k))); return(l)};
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
François Marques, Jan 20 2021
STATUS
approved