Its an infinite list atm which starts at number 2, but what i wanna do is cut out every second number after it. So like 2 3 5 7. But i can't figure it out.
Code:
def listgenerator(x):
x=1
while x>0:
x+=1
print(x)
print(listgenerator(1))