Skip to content

Commit

Permalink
Be smarter
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Apr 20, 2012
1 parent 7d983bc commit 00bc549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/problem04.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func is_palindrome(digits []int) bool {
func main() {
largest := 1
for i := 100; i < 1000; i++ {
for j := 100; j < 1000; j++ {
for j := i; j < 1000; j++ {
product := i * j
if is_palindrome(get_digits(product)) && product > largest {
largest = product
Expand Down

0 comments on commit 00bc549

Please sign in to comment.