Project Euler 206 - Concealed Square
Project Euler 206 - Concealed Square
Official link: https://projecteuler.net/problem=206
Thought Process
Thought Process
2 speedups I found go as follows
It should be obvious that when searching for squares we want to search above sqrt(1020304050607080900) ~ 101010101
and below sqrt(1929394959697989990) ~ 1389026623. My code starts at 101010100 and check's 101010100 + 30, 101010100 + 70, if neither if correct than + 100 and check again (Incorporates both our point 1 and 2)
Interactive Code
Interactive Code
No interactive code for this one, code is included below