+ 5

[Challenge] Palindromic Sum

The palindromic number 595 is interesting because it can be written as the sum of consecutive squares: 6^2+7^2 +8^2 +9^2 +10^2+ 11^2+12^2. There are exactly eleven palindromes below one-thousand that can written as consecutive square sums, and the sum of these palindromes is 4164. Note that 1 = 0^2 + 1^2 has not been included as this problem is concerned with the squares of positive integers. Find sum of all numbers less than 10^8 that are both palindromic & can be written as the sum of consecutive squares

1st Feb 2018, 6:29 AM
Chandrakant More
Chandrakant More - avatar
13 Answers
1st Feb 2018, 11:48 AM
LukArToDo
LukArToDo - avatar
+ 15
@VcC Actually, result is 2906969179 (166 numbers) The numbers 554455 and 9343439 are repeated in the list of 168 numbers (where sum=2916867073) Please, check again 😉
1st Feb 2018, 8:34 PM
LukArToDo
LukArToDo - avatar
+ 13
@VcC Thank you 😉
1st Feb 2018, 8:57 PM
LukArToDo
LukArToDo - avatar
+ 5
Sololearn soon reaches its bounderies Did it up to 1000000 https://code.sololearn.com/c2zxsq56wCbj
2nd Feb 2018, 4:59 PM
Oma Falk
Oma Falk - avatar
+ 4
To get to 10^8 you need to make max=10000 , but it times out on playground https://code.sololearn.com/c5L8tmyu3S9J/#py
1st Feb 2018, 9:17 AM
Louis
Louis - avatar
+ 3
Is 5 a palindromic number ( 5 = 1^2 +2^2)
1st Feb 2018, 7:16 AM
Vaibhav Sharma
Vaibhav Sharma - avatar
+ 2
yes it is @Vaibhav Sharma
1st Feb 2018, 9:18 AM
Chandrakant More
Chandrakant More - avatar
1st Feb 2018, 8:52 PM
VcC
VcC - avatar
+ 1
Great solution @Louis
1st Feb 2018, 9:19 AM
Chandrakant More
Chandrakant More - avatar
+ 1
nice try man @LukArToDo
1st Feb 2018, 11:51 AM
Chandrakant More
Chandrakant More - avatar
+ 1
2916867073
1st Feb 2018, 7:34 PM
VcC
VcC - avatar
+ 1
for 168 numbers
1st Feb 2018, 7:47 PM
VcC
VcC - avatar