Problem

Source: Canadian Mathematical Olympiad 2017

Tags: function, number theory



Define a function $f(n)$ from the positive integers to the positive integers such that $f(f(n))$ is the number of positive integer divisors of $n$. Prove that if $p$ is a prime, then $f(p)$ is prime.