Determine all positive integers $n>1$ such that for any divisor $d$ of $n,$ the numbers $d^2-d+1$ and $d^2+d+1$ are prime. Lucian Petrescu
Problem
Source: Mathematical Danube Competition 2016, Juniors P2
Tags: number theory, prime numbers, Divisors, romania