Skip to content

Commit 7145f04

Browse files
committed
Ah GIT! Let me give just one search.
1 parent 7097f20 commit 7145f04

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

03.ProgrammerKaioken10.c

+3-4
Original file line numberDiff line numberDiff line change
@@ -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.
1+
/// You don't need to calculate all the way to the end, finding one divisor
2+
/// is enough. So, just 'return', no need for 'flag'. 'break' would work too,
3+
/// but 'return' is better.
54

65
int prime_num(int x){
76
int i = 2;

0 commit comments

Comments
 (0)