Skip to content

Commit a4cb629

Browse files
fixed LGTM
1 parent 786fd5c commit a4cb629

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/examplehub/projecteuler/Problem06.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class Problem06 {
1616
public static long solution1(int n) {
1717
long sumOfSquares = 0;
1818
for (int i = 1; i <= n; ++i) {
19-
sumOfSquares += i * i;
19+
sumOfSquares += Math.pow(i, 2);
2020
}
2121

2222
long squareOfSum = (long) Math.pow(SumToN.sum(n), 2);

0 commit comments

Comments
 (0)