OFFSET
1,1
COMMENTS
If there are infinitely many twin primes, this sequence has an infinite number of terms.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
17 is a twin prime paired with 19. The 17th prime is 59 which is also a twin prime paired with 61.
PROG
(PARI) twips(n) = { forprime(x=3, n, x1=prime(x); if(isprime(x-2) || isprime(x+2), if(isprime(x1-2) || isprime(x1+2), print1(x1", ") ) ) ) }
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, Oct 21 2003
EXTENSIONS
Offset corrected by Amiram Eldar, Jan 09 2020
STATUS
approved