View Single Post
Old 2012-05-22, 04:22   #6
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Use a weighted sum of the appropriate pi_k.

For example, if you wanted the number of odd 3-almost-primes up to x, that's pi_3(x) - pi_2(x/2).
CRGreathouse is offline   Reply With Quote