We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4df9cbb commit df438d3Copy full SHA for df438d3
01.BaseProgrammer.c
@@ -1,6 +1,7 @@
1
-/// Though you knew how prime number worked, it took a long time
2
-/// to come up with this logic. Also, You made several mistakes
3
-/// on the way. And now, you are proud of your brilliant solution.
+/// Though u knew how prime number works (of course u r good @ math),
+/// it took a long time to come up with the logic. Also, u made several
+/// mistakes on the way. And now, u are proud of ur brilliant solution.
4
+/// YES!!!
5
6
int func(int a)
7
{
@@ -11,11 +12,11 @@ for(i=1; i<=a ; i=i+1 )
11
12
13
if(a%i == 0)
14
{x=x+1 ;}
- }
15
+ }
16
if( x == 2)
17
{r = 1;}
18
else
19
{r = 0;}
- return r ;
20
+ return r ;
21
22
}
0 commit comments