Project Euler 518 - Prime Triples and Geometric Sequences

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