Problem

Source: Romania 3rd JBMO TST 2023 P1

Tags: number theory



Determine all natural numbers $n \geq 2$ with at most four natural divisors, which have the property that for any two distinct proper divisors $d_1$ and $d_2$ of $n$, the positive integer $d_1-d_2$ divides $n$.