#P2568. GCD
GCD
Description
Given a positive integer , count the number of pairs such that and is a prime number.
Input Format
A single line containing one integer representing .
Output Format
Output a single integer in one line, representing the answer.
4
4
Hint
Sample Input/Output 1 Explanation
For the sample, the pairs that satisfy the condition are , , , .
Constraints
- For of the testdata, it is guaranteed that .
Source: bzoj2818.
The testdata for this problem are self-made by Luogu, generated using CYaRon, taking 5 minutes.
Translated by ChatGPT 5
京公网安备 11011102002149号