OFFSET
1,1
COMMENTS
See A129470
EXAMPLE
PROG
(PARI) class(n, s=1)={n=factor(n+s)[, 1]; if(n[ #n]<=3, 1, for(i=2, #n, n[1]=max(class(n[i], s)+1, n[1])); n[1])}; a129478(n=100, p=1, a=[])={local(f, a6=A005113[6]); p=max(p, a6*nextprime(a6+1)*2-2); while( #a<n, until( #f>2 & f[ #f-1] >= a6 & 6 > class(f[ #f]), f=factor(1+p=nextprime(p+1))[, 1]); forstep( i=#f-1, 2, -1, if( 7 < f[1] = max( f[1], 1+class( f[i] )), next(2))); if( f[1] == 7, a=concat(a, p); print(#a, " ", p))); a}
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, Apr 17 2007
STATUS
approved