OFFSET
1,2
COMMENTS
If k is in {1, 2, 3, 4, 29, ...} then both numbers k and k+1 are in the sequence.
PROG
(PARI) lista(nn) = {my(c=0, q=r=5, s=3, t); forprime(p=9, nn, if(p-2==q, if((t=s^(1+1/c++))>r && t<q, print1(c, ", ")); s=r; r=q); q=p); } \\ Jinyuan Wang, Nov 28 2020
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Jahangeer Kholdi and Farideh Firoozbakht, Nov 22 2014
EXTENSIONS
a(13)-a(15) from Jinyuan Wang, Nov 28 2020
STATUS
approved