I'm trying to write some code that outputs the prime numbers from 3 up to 100. Here's what I've wrote so far, but I have no idea why the output is EVERY number from 3 to 100. I tried changing the AND (&&) to OR (||), but got the exact same results. Thanks:
Just an oppinion but i think adding '\n' where " " would make it look better. Instead of alligning them all on the same line and the "Press any key to continue"
being on the same line, it would make each number be on its own line.