Problem

Source: 2018 JBMO TST- Macedonia

Tags: JMMO, Junior, 2018, Macedonia, number theory



Determine all positive integers $n>2$, such that $n = a^3 + b^3$, where $a$ is the smallest positive divisor of $n$ greater than $1$ and $b$ is an arbitrary positive divisor of $n$.