Hi, sorry for the long delay in replying. I don't really understand: why is it more convenient to store first prime number up to sqrt() rather than calculating them only if needed? If I need primes up to 11 why do I need to calculate first 10^6 numbers?