OFFSET
1,1
LINKS
Zak Seidov, Table of n, a(n) for n = 1..10000
FORMULA
p=(q+r)/2, where q<p and r>p are two successive semiprimes closest to p.
EXAMPLE
a(3)=67 because 65 and 69 are two successive semiprimes closest to 67 and 67=(65+69)/2;a(333)=22679 because 22677 and 22691 are two successive semiprimes closest to 22679 and 22679=(22677+22681)/2.
PROG
(PARI) list(lim)=my(v=List(), u=v, t, lim2=lim+log(lim)^2); forprime(p=2, sqrt(lim2), t=p; forprime(q=p, lim2\t, listput(v, t*q))); v=vecsort(Vec(v)); for(i=2, #v, t=(v[i]+v[i-1])/2; if(denominator(t)==1&&isprime(t), if(t>lim, break, listput(u, t)))); Vec(u) \\ Charles R Greathouse IV, Oct 08 2012
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Feb 12 2005
STATUS
approved