We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7097f20 commit 7145f04Copy full SHA for 7145f04
03.ProgrammerKaioken10.c
@@ -1,7 +1,6 @@
1
-/// Now, you are smart enough not to use flag;
2
-/// making the code a little bit more efficient.
3
-/// You could use break with flag, but return is
4
-/// better.
+/// You don't need to calculate all the way to the end, finding one divisor
+/// is enough. So, just 'return', no need for 'flag'. 'break' would work too,
+/// but 'return' is better.
5
6
int prime_num(int x){
7
int i = 2;
0 commit comments