Project Euler 869 - Prime Guessing

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