Problem E

Statement
Copy Copied
Description:
Positive integer number x is called prime, if it has exactly two positive integer divisors. For example, 2, 3, 17, 97 are primes, but 1, 10, 120 are not.

You are given an integer number n, find the shortest segment [a, b], which contains n (i.e. a ≤ n ≤ b) and a, b are primes.

Input Format:
The only given line contains an integer number n (2 ≤ n ≤ 10000).

Output Format:
Print the space separated pair of the required numbers a, b.

Note:
None

Evaluations

Eval IDRun IDProviderModelLangSuccessTimestampPromptResponseStdoutStderrRetry
210 20260206-090110 openrouter anthropic/claude-opus-4.6 go true 2026-02-06T09:32:59.125838Z View View View View Retry