#2663. 最大公约数是素数
最大公约数是素数
Background
给定整数,求且为素数的数对有多少对
Input
输入一个整数
Output
输出一个整数,表示满足条件的数对数量。
Samples
4
4
Limitation
给定整数N,求1<=x,y<=N且GCD(x,y)为素数的数对(x,y)有多少对
输入一个整数N
输出一个整数,表示满足条件的数对数量。
4
4
1<=N<=107
By signing up a 黑猫OJ universal account, you can submit code and join discussions in all online judging services provided by us.