#285. 素数密度
素数密度
素数密度
题目描述
给定区间 (,),请计算区间中素数的个数。
输入格式
第一行,两个正整数 和 。
输出格式
一行,一个整数,表示区间中素数的个数。
样例 #1
样例输入 #1
2 11
样例输出 #1
5
给定区间 [L,R](1≤L≤R<231,R−L≤106),请计算区间中素数的个数。
第一行,两个正整数 L 和 R。
一行,一个整数,表示区间中素数的个数。
2 11
5
By signing up a acjudge universal account, you can submit code and join discussions in all online judging services provided by us.