Y by Smita, Davi-8191, Adventure10, Mango247
Two positive integers
and
are prime-related if
or
for some prime
. Find all positive integers
, such that
has at least three divisors, and all the divisors can be arranged without repetition in a circle so that any two adjacent divisors are prime-related.
Note that
and
are included as divisors.







Note that

