OFFSET
1,1
COMMENTS
Gives primes in A029707. - Pierre CAMI, Apr 20 2006
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000 (terms 1..1000 from Vincenzo Librandi)
EXAMPLE
89 is a term since it is a prime and prime(89 + 1) - prime(89) = 463 - 461 = 2; the prime with subscript 89 (which is prime) and the next prime (i.e., prime(90)) are twin primes.
MATHEMATICA
Prime[Flatten[Position[Table[Prime[Prime[n]+1]-Prime[Prime[n]], {n, 1, 1000}], 2]]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jun 23 2004
STATUS
approved