From a7a2a4993bfd2a573f6fb1919aff41bd2dc7548d Mon Sep 17 00:00:00 2001 From: Vitali Plagov Date: Wed, 15 Mar 2023 23:39:28 +0200 Subject: [PATCH] Improve as per code style suggestion --- .../net/projecteuler/problems/problems001to025/Problem024.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/projecteuler/problems/problems001to025/Problem024.java b/src/main/java/net/projecteuler/problems/problems001to025/Problem024.java index a529294..723f6a1 100644 --- a/src/main/java/net/projecteuler/problems/problems001to025/Problem024.java +++ b/src/main/java/net/projecteuler/problems/problems001to025/Problem024.java @@ -15,7 +15,7 @@ public String solve() { for (int i = 1; i < str.length() + 1; i++) { remainders.addFirst(n % i); - n = n / i; + n /= i; } StringBuilder result = new StringBuilder();