I’m completely confused about this error. My global variable which i only use once in the program and increment it is getting back at one point and i don’t know why. I know there has to some error from my part but I can’t seem to figure it out. Help will be really appreciated.
here is the imagur link to my code and output. i have circled the problem.
Solving prime generator problem.