Project Euler 634 - Numbers of the form a^2*b^3

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

Note: For some reason, I cannot figure out why I am off by 1 on some answers, but I'm more than happy with my implementation