## yujhtheyujh Contest 1 - P1

#### Contributed by: yujhtheyujh

All SubmissionsBest Submissions

#### Difficulty: 9

#### This problem is tagged with yty, yty1.

A function $f$ is defined such that $f(0) = 0$ and for all $i \gt 0$, $f(i) = i - (\text{smallest prime factor of i})$. Someone applied $f$ to a number $N$ exactly $K$ times such that the resulting number is exactly $2023$ less than $N$. Find the least $N$ when $K$ is minimized. Note that $f(1)=1$.

flag
Report Content

You should report content if:

You should report content if:

- It may be offensive.
- There is something wrong with it (statement or difficulty value)
- It isn't original.