//find a prime number
for( $prime=2; $prime < 500;$prime++)
for( $count=2; $count<$prime/2 ; $count++)
if( $prime % $count == 0 )
if( $prime % $count == 0)
else if( $prime == ($count-1)*2)
continue; //This is because if this condition fulfills, it means that the inner loop is terminated because of Text Expression failed. So, the number cant be prime in this case and program is sent back to start of loop.
printf("$prime is prime #");
please mention all the problems in it (because its not working properly).