While what you say makes perfect sense, there is a problem with your argument. The question was "a way to print the numbers from 1 to 5."
The answer you gave, while showing no real grasp of the obvious concepts, IS a PERFECT solution to the problem. If you want a better answer you should have asked a better question.
Personally the cheat finder programs are absolutly absurd. First rarely (at least at Georgia Tech) are the 'results' of the cheat finder ever looked at by a person. But they don't account for LEARNING. About 45% of my freshman class taking intro to progamming got formally accused for cheating (I would bet close to 75% got flagged at one point). Including a few of my friends. Some of them did cheat, downright copied code. Some of them worked together to produce the code (for a HW assignment) then changed it up a bit and submitted. The thing was that ANY other non-CS class doing homework together would not even be questioned as cheating.
I didn't get accused of cheating, but got flagged and confronted about my 2 line solution to sorting a list. The thing was I used the example the prof. put up in class, allong with evenyone else at that class. But I had to prove that I was at class, and show my notes in front of a quasi-legit review board. There were ~80 people there for the EXACT same reason.
I also had two of my friends accused of cheating after discussing a MATHAMETICAL way of getting a faster prime number list. We all had done our programs and were shooting the shit about how we got our prime numbers. Mine was significantly faster than theirs, so they used my method to get primes. I changed mine a bit and sacrifced speed for the lower values, but got noticible improvments (because I had a side project I was starting) at much higher numbers. They both got charged because they both had 1 identical (but very odd and quirky) mathematical calculation in the middle of their completely different code. Add on to that the project was about concatenating lists, the math was just a method to get another value to concatenate.
I eneded up calculating the first 1,000,000 prime numbers (it may have been 100,000, or other very large number) then printed them to a doc file, then printed 128 sheets of 6pt font of the numbers. Then wallpapered the hall outside my dorm door.