OFFSET
1,1
COMMENTS
The length of the prime chain starting at prime(n), with the least parameters a (>0, even) and b (>0, <a and odd) such that this chain is at least of length 2.
LINKS
D. Broadhurst, Warren D. Smith, et al., Prime chains x -> Ax+B. Yahoo group "primenumbers", Nov 2010.
David Broadhurst and others, Prime chains x-->Ax+B, digest of 143 messages in primenumbers Yahoo group, Nov 12, 2010 - Jan 7, 2011.
David Broadhurst and others, Prime chains x-->Ax+B, digest of 143 messages in primenumbers Yahoo group, Nov 12, 2010 - Jan 7, 2011. [Cached copy]
PROG
(PARI) chainlen(n)={ n=prime(n); forstep(a=2, 1e9, 2, forstep(b=1, a, 2, ispseudoprime(a*n+b)|next; for(c=1, 1e9, ispseudoprime(n=a*n+b) | return(c)))) }
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, Nov 16 2010
STATUS
approved