Hello, I am having a bit of trouble understanding primnum in the code bellow. I read the documentation and around forums but I am still stuck. Just to note I do not have a programming background of any kind.
Looking at the code it makes it look as if it will always be right for the first “if”. I understand it, as if primnum will always be equal to max_nm in the case bellow. From what I could find for primnum, it's the id of the current primitive.
I don't have an issue with understanding the for loop, but rather from where does the current primitive number come from. Isn't it the one that its being currently worked one, which from my understanding (most likely wrong) is the same as the value of “nm” per loop.
Yeah, now I understood it. For a moment I got stuck at the code logic again but then I remembered that the wrangle sop loops over the whole code rather than parts of it. Silly I know… Thanks Konstantin