Problem 291: Panaitopol Primes

FCC link

A prime number p is called a Panaitopol prime if for some positive integersx and y.

Find how many Panaitopol primes are less than 5×1015.

Test

{{test}}

Console output