OFFSET
1,2
FORMULA
PROG
(PARI) A261323(n, d=A008407[n], m=0)={until(prime(m+n)==prime(m++)+d, ); m} \\ Assumes a precomputed vector A008407 with at least n elements, or supply the gap as 2nd arg. Inefficient for n>23. - M. F. Hasler, Aug 17 2015
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Max Alekseyev, Aug 14 2015
STATUS
approved