OFFSET
1,3
COMMENTS
Checking up to n=10^6, it appears that a(n)=0 for only n=1 and the n in A091592.
LINKS
T. D. Noe, Table of n, a(n) for n=1..10000
EXAMPLE
a(7)=10 because (59,61) is the smallest twin-prime pair between 49 and 64.
MATHEMATICA
Table[n2=n^2; k=1; While[k<2n+1 && !(PrimeQ[n2+k] && PrimeQ[n2+k+2]), k++ ]; If[k==2n+1, 0, k], {n, 10^4}]
CROSSREFS
KEYWORD
nonn
AUTHOR
T. D. Noe, Mar 06 2008
STATUS
approved