Okay, so I am a novice programmer, and I'm encountering my first inexplicable issue. I have a pair of nested for loops, meant to check for prime numbers. It is as follows.
It compiles fine, then crashes when I try to run it. I'm beyond this level, so I'm just frustrated as hell that some tweak is giving me all this trouble.
using namespace std;
int main ()
for (short int f=0; f <= 100; f++)
for (short int y=0; y <=100; y++)
test = f%y;
if (test != 0)