In Love with Primes problem solution