Skip to content

Commit f7a2a95

Browse files
committed
[CodeFactor] Apply fixes
1 parent 568efeb commit f7a2a95

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/miscellaneous/TimeComplexityPrimality.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ namespace algorithm_exercises_csharp.hackerrank.interview_preparation_kit.miscel
88

99
public static class TimeComplexityPrimality
1010
{
11-
1211
private const string PRIME = "Prime";
1312
private const string NOT_PRIME = "Not prime";
1413

@@ -25,7 +24,7 @@ public static class TimeComplexityPrimality
2524
int i = 2;
2625
while (i <= Math.Sqrt(divisor))
2726
{
28-
if (0 == divisor % i)
27+
if (divisor % i == 0)
2928
{
3029
divisor = divisor / i;
3130
maxPrimeFactor = i;

0 commit comments

Comments
 (0)