I want to have something like a double conditional I want to include in a forloop, in order to reduce computation time I want to do something like the following:
for i WHERE i % 2 == 0 in range(0,(realbignumber/2)):
if i % realbignum == 0: do some stuff
I am mostly uncertain on the proper way to do that 'where' type statement in the forloop? I'm sure there are probably better approaches to take to reduce computation time (i'm trying to do a prime factorization of realbignum) and will start by getting a list of divisors, then check for primeness. Once I get the i%2==0 'where' clause figured out I plan on implementing something like 'for i where i is prime in range....do stuff. I'm working in python 2 but am fine with python 3 approaches as well.