Lol do you just want the answer?
Hints are fine too, lol
I’ll just give a few (why not), some may be obvious
The answer must be a product of primes strictly greater than the N-th prime.
It’s always optimal to have the answer be a product of exactly 2 primes. Let’s say we have a valid number that’s a product of k primes. Then we could divide by k - 2 of those primes and the number would still be valid.
There’s no reason to use any primes larger than the (N + 1)-th prime, because that prime is the smallest prime that we’re allowed to divide by.
Directly following (2) and (3), the answer is the (N + 1)-th prime, squared.