Project Euler 316 - Numbers in decimal expansions

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