@Wladimirufc: I haven't paid much attention to your sieving method, but please see this link if it's applicable to your particular problem http://mathworld.wolfram.com/PrimeCountingFunction.html
Please pay attention to the Lagarias-Miller-Odlyzko algorithm. Alternatively, optimization of your sieve method might work. -- DK http://twitter.com/divyekapoor http://www.divye.in -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To view this discussion on the web visit https://groups.google.com/d/msg/algogeeks/-/gewroNmQ6ggJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
