搜索资源列表
rmi sc
- 这是我自己写的一个远程调用程序,功能是证明在一定范围内的任意偶数可分为两个素数的和。其中素数 的判断方法在远程实现。可能比较简单,但我希望为大家提供帮助。- A few of them - the judgment of the remotely. May be rather simple, but I hope for you to help.
test1
- 请编写一个面向无连接的基本SOCKET套接字的C/S通信程序。本题属于其服务器端,程序的要求是:创建一个数据报式套接字,并与本地的20005号端口进行绑定,等待客户端发来的一个int数据,收到数据后,将这个int整数输出,并判断它是否为一个素数(判断结果用0和1表示,0表示“否”, 1表示“是”),然后将判断结果回送给对方,最后关闭套接字,退出系统。-Please write a basic connectionless-oriented socket SOCKET C/S communicat
test
- 创建两个子进程,分别计算1~5000和5000~1W的素数 通过信号,用父进程专门完成数的保存.同时开启一个进程读文件, * 并讲数据输出到屏幕(保证不被其它信号干扰) -Create two sub-processes, respectively, calculated 1 ~ 5000 and 5000 ~ 1W the prime number of the parent process through the signal specifically to complete t
2
- 判断素数的方法:用一个数分别去除2到sqrt(这个数),如果能被整除, 则表明此数不是素数,反之是素数。 -Method for Analyzing primes: removing a number of 2 to sqrt (), where it can be evenly divisible, Indicates that this number is not a prime number is a prime number, and vice vers
1
- 一个小小的计算,关于素数的练习,然后使用计算功能- how to complete
素数判断
- 生成大素数,利用了时间随机种子。并且用Miller_Rabin测试法,判定素数(Generating large prime numbers takes advantage of temporal random seeds. And the Miller_Rabin test is used to determine the prime number)
1000sushu
- 查找1000内素数,利用goto和for循环(Find 1000 prime numbers)
Eratosthenes
- 本代码利用著名的筛子算法,缩小筛选素数的时间(use Eratosthenes theory to chose the prime)