Project Euler 173 - Using up to one million tiles how many different "hollow" square laminae can be formed?

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