题解 2955: 判决素数个数

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

2955: 判决素数个数

摘要:解题思路:循环判断x到y有多少个质数注意事项:后面定义sum来累加计算              rutern不能写成cout              MYdamn里是i              ……

2955: 判决素数个数

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll prime (ll x)//先判断……

素数个数Java版本

摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] a……

2955: 判决素数个数

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long sushu(long long x){    if(x<2) ……