First would be making it so we can read it. Use the
</> key above the entry area near the hypertext icon.
Now on to your problem.
Just by asking if x is less than 2 it will encompass all the negatives because let's face it, it is less than 2.
Then as you can see I moved the final return to the first scope so that after everything else complete it always returns
True, that is because it is
True if everything else fails.
Doing that it works.
for i in range(2,x):