+ 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

13 odpowiedzi

+ 15

+ 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 😉

+ 13

@VcC
Thank you 😉

+ 5

Sololearn soon reaches its bounderies
Did it up to 1000000
https://code.sololearn.com/c2zxsq56wCbj

+ 4

To get to 10^8 you need to make max=10000 , but it times out on playground
https://code.sololearn.com/c5L8tmyu3S9J/#py

+ 3

Is 5 a palindromic number ( 5 = 1^2 +2^2)

+ 2

yes it is @Vaibhav Sharma

+ 1

Great solution @Louis

+ 1

nice try man @LukArToDo

+ 1

2916867073

+ 1

for 168 numbers