OFFSET
1,1
COMMENTS
Conjecture: The number of terms in this sequence is infinite.
This follows from Dickson's conjecture. - Charles R Greathouse IV, Jan 29 2013
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
FORMULA
I conjecture that a(n) ~ 4n log n. - Charles R Greathouse IV, Jan 29 2013
EXAMPLE
The last digits of the consecutive prime pair 89 and 97 differ by 2 so 89 is in the table.
MATHEMATICA
Select[Partition[Prime[Range[200]], 2, 1], Abs[Mod[#[[1]], 10]-Mod[#[[2]], 10]] == 2&][[All, 1]] (* Harvey P. Dale, Sep 14 2018 *)
PROG
(PARI) \d can be 2, 4, 6, 8 primediffd(n, d) = { forprime(x=3, n, y=abs((nextprime(x+1)%10-x%10)); if(y==d, print1(x", ") ) ) }
(PARI) p=2; forprime(q=3, 1e4, if(abs(q%10-p%10)==2, print1(p", ")); p=q) \\ Charles R Greathouse IV, Jan 29 2013
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Cino Hilliard, May 19 2007
STATUS
approved