Project Euler 808 - Reversible Prime Squares

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