Update
This commit is contained in:
parent
f7e0fb4b27
commit
556653d6e4
28 changed files with 190 additions and 41 deletions
|
@ -60,7 +60,7 @@ Notice that *x*, *divisor counter* and *currently checked number* are [variables
|
|||
| | | |
|
||||
| V | |
|
||||
--------------<------------- |
|
||||
V
|
||||
V no
|
||||
divisor count = 2 ? ------
|
||||
| |
|
||||
| yes |
|
||||
|
@ -107,8 +107,8 @@ int main(void)
|
|||
|
||||
printf("number of divisors: %d\n",divisors);
|
||||
|
||||
if (divisors == 2)
|
||||
puts("It is a prime!");
|
||||
if (divisors == 2)
|
||||
puts("It is a prime!");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue