Project Euler 291 - Panaitopol Primes

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

Note: My code takes around ~670s, but ~45s with pypy