搜索资源列表
sushudui
- 编制函数prime,用来判断整数n是否为素数:bool prime(int n); 而后编制主函数,任意输入一个大于4的偶数n,找出满足n=i+j的所有数对,其中要求i与j均为素数(通过调用prime来判断素数)。如偶数18可以分解为11+7以及13+5;而偶数80可以分解为:43+37、61+19、67+13、73+7。-establishment prime function, used to judge whether the i
jueduisushu
- 一个自然数是素数,且它的数字位置经过任意对换后仍为素数,刚称为绝对素数,例如:13。试找出所有二位绝对素数。-a natural number is a prime number, and its position after arbitrary figures for the number of after-still, just as absolute prime, For example : 13. Tried to find o
Primes
- 1.计算n至少多大时,以下不等式成立。 1+1/2+1/3+……+1/n>10 2.请分别用break和continue语句判断1-1000以内的素数个数。 3.编写一个程序找出100~1000之间的所有姐妹素数。(注: 姐妹素数是指相邻两个奇数均为素数。)-1. Calculating how much n at least, the following inequality established. 1+ 1/2
sushufangzheng
- 素数方阵系统,找出所有符合条件的素数方阵-Prime numbers square system to identify all eligible prime numbers square
PrimeNumber
- C# 利用线程找出素数并将其显示,同时可通过按键控制线程的状态-err
shiyan12
- 编制具有如下原型的函数prime,用来判断整数n是否为素数:bool prime(int n) 而后编制主函数,任意输入一个大于4的偶数d,找出满足d=d1+d2的所有数对,其中要求d1与d2均为素数(通过调用prime来判断素数)。如偶数18可以分解为11+7以及13+5;而偶数80可以分解为:43+37、61+19、67+13、73+7。 提示:i与d-i的和恰为偶数d,而且只有当i与d-i均为奇数时才有可能成为所求的“数对
12
- 12. 编制具有如下原型的函数prime,用来判断整数n是否为素数:bool prime(int n) 而后编制主函数,任意输入一个大于4的偶数d,找出满足d=d1+d2的所有数对,其中要求d1与d2均为素数(通过调用prime来判断素数)。如偶数18可以分解为11+7以及13+5;而偶数80可以分解为:43+37、61+19、67+13、73+7。 提示:i与d-i的和恰为偶数d,而且只有当i与d-i均为奇数时才有可能成为所求的
rsa
- 1) 找出两个相异的大素数P和Q,令N=P×Q,M=(P-1)(Q-1)。 2) 找出与M互素的大数E,用欧氏算法计算出大数D,使D×E≡1 MOD M。 3) 丢弃P和Q,公开E,D和N。E和N即加密密钥,D和N即解密密钥。 -1) to identify two different large prime numbers P and Q, so N = P × Q, M = (P-1) (Q-1). 2) to id
winZip
- 输入一个自然数,然后找出所有小于它的素数,并打印出来-Enter a natural number, and then identify all the prime numbers less than it, and print out
primNum
- 找到1到2000的素数,并找出连续整数和为1898的个数-1-2000 to find the prime numbers, and to identify 1898 consecutive integers and the number of
SHUSU
- 设计程序求任意给定范围之间的素数。先建立一个含有2~100之间所有自然数的数表,在数表中删去2的倍数(不包括2);然后找2后面第一个被保留的数p(是3),再删除p的倍数(不包括p);然后再找下一个被保留的数(是5),继续上述步骤:这样继续下去,直至P大于100为止。-The design process for any given prime number between range.
prime
- 找n以内的素数的程序,算法复杂度O(n^0.5)-Find the prime numbers below n, the efficiency of the program is O(n^0.5).
Seekprimes
- 求素数,并且保存于文本文件,并且下次执行还可以接着上次的结果继续找下去 所以总有一天你会找到最大的素数……每天就像挂Q一样挂一下这个程序就行了-Seek primes, and stored in a text file, and the next performance can also be followed by the last results continue to look down so that one day yo
5
- 编一个程序找出所有的由四个不同数字组成的素数。-Find all by four different number of primes.
findsushu
- 用筛选法可得到2~10000之间的所有素数,找出此序列中最长的等差序列(连续的和不连续的两种)。例如:3,5,7 为一连续等差序列,长度为3,公差为2;而7,13,19 为一不连续等差序列,长度为3,公差为6。-2 with the screening method available for all prime numbers between 10000 to find out the sequence of the longest
prime
- 一是利用计算机对正整数进行素因子分解认识素数,通过运用筛法与试除法寻找一定范围内的素数,体会到筛法比试除法有效但无法找出所有素数;二是通过若干特殊形式的素数的研究,寻找素数生成公式,发现一些结论;三是借助于非线性拟合技术,观察素数分布规律,利用其研究有关数论问题。-The first computer was used to prime factor decomposition of positive integers understa
EX4
- 用Win32所提供的同步对象解决有限缓冲区问题:写一个过线程实现C/C++语言程序:一些线程负责找出某个范围的素数,并放到一个数组中。另一些线程负责将数组中的素数取出,依次显示 -Use Win32 synchronization objects provided by the limited buffer problem to solve: write a thread to achieve than C/C++ Language
number
- 该程序用简单的方法找出了与一个数m临近的k个素数,用户可输入m与k。-The program uses a simple method to find a number m with neighboring k primes, the user can input m and k.
2
- 用筛选法得到2~10000之间的所有素数,并找出其中的所有等差数列-2 with the screening method are all prime numbers between 10000 and to find out all the arithmetic progression
MYMFC2
- 寻找100以内素数,可以输入起始数和要找的素数个数-Find prime numbers less than 100, can enter the starting number and the number of prime numbers to find