Prime number checker

trying to work on a Prime Number checker. Mostly it works, but it doesn’t execute the last “if then” block - telling the user whether there number is prime or not.

I figure the repeat while should execute, and then the final "if then " block should fire.

Advice please?

The reason while it’s not executing the last “if then” block is because the “repeat while” loop never finishes. The value for “answer” never changes while inside the loop, so “answer” will always be less than “answer” + 1.

Thanks kchong - I’m not sure why it didn’t see that
Perfect solution!