Problem

Source: Centroamerican Olympiad 2014, problem 6

Tags: modular arithmetic, number theory proposed, number theory



A positive integer $n$ is funny if for all positive divisors $d$ of $n$, $d+2$ is a prime number. Find all funny numbers with the largest possible number of divisors.