Comments

Auto comment: topic has been updated by turtleforces (previous revision, new revision, compare).

Guess you've found out now:)

Me. I used the approach of finding the first prime that does not divide n — 1, which must exist within the first 10 primes since n is at most 1e9.

Thank you so much!!!

Thank you for the contest! I like it a lot~~