Project Euler 123 - Prime Square Remainders

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