How to make tqdm work with a simple while loop
How to make tqdm work with a simple while loop Question: I have this simple code (do pip install primesieve first): def prob(n): it = primesieve.Iterator() p = 1 prime = it.next_prime() while prime <= n: p = p * (1-1/prime) prime = it.next_prime() return p How can I use tqdm to get a progress …