OFFSET
2,3
COMMENTS
More than 84% of the semiprimes in the interval [4, 2^32] are odd and squarefree. This percentage appears to rise indefinitely as n grows.
a(n) = 100 for all n > N. What is the least such N? - Charles R Greathouse IV, May 12 2013
EXAMPLE
a(5)= 20 since the interval [4, 2^5] contains 10 semiprimes, namely 4,6,9,10,14,15,21,22,25 and 26; and two of those semiprimes, (15 and 21), are odd and squarefree.
PROG
(PARI) a(n)=my(s, i, N=2^n); forprime(p=2, sqrtint(N), s+=primepi(N\p); i++); s-=i*(i-1)/2; i=primepi(sqrtint(N))+primepi(N/2)-1; round(100*(s-i)/s) \\ Charles R Greathouse IV, May 12 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Washington Bomfim, Oct 27 2008
STATUS
approved