<分区>
在下面的代码中,在最内层循环中,当d < p 为true且p % d == 0 为false时, 变量 d 是递增还是递增被跳过?
// Program to generate a table of prime numbers
#include <stdio.h>
int main (void)
{
int p, d;
_Bool isPrime;
for ( p = 2; p <= 50; ++p ) {
isPrime = 1;
for ( d = 2; d < p; ++d )
if ( p % d == 0 )
isPrime = 0;
if ( isPrime != 0 )
printf ("%i ", p);
}
printf ("\n");
return 0;
}