Project Euler 348 - Sum of a square and a cube

Official link: https://projecteuler.net/problem=348

Thought Process

Sometimes brute force is the way. I just go through all cubes and squares up to 10^9 (I started with 10^8 but only found 3 numbers). If I get a palindrome I add a count to a dictionary, then I go through the dictionary and if the count is 4, I add it to a total.

Nothing special at all here takes ~ 19 seconds

Interactive Code

No interactive code for this problem, my code is given below