diff --git a/Misc/LowestBasePalindrome.java b/Misc/LowestBasePalindrome.java index fce2d216..d0df5c30 100644 --- a/Misc/LowestBasePalindrome.java +++ b/Misc/LowestBasePalindrome.java @@ -46,7 +46,7 @@ public class LowestBasePalindrome { String digits = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; while (!foundBase) { - // Try from bases 2 to num (any number n in base n is 1) + // Try from bases 2 to num-1 for (base=2; base0) {