搜索资源列表
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 integer n is prime : bool prime
sushufangzheng
- 素数方阵系统,找出所有符合条件的素数方阵
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均为奇数时才有可能成为所求的“数对”。 -Prepared with the follow
winZip
- 输入一个自然数,然后找出所有小于它的素数,并打印出来-Enter a natural number, and then identify all the prime numbers less than it, and print out
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 you will find the largest prime
prime
- 一是利用计算机对正整数进行素因子分解认识素数,通过运用筛法与试除法寻找一定范围内的素数,体会到筛法比试除法有效但无法找出所有素数;二是通过若干特殊形式的素数的研究,寻找素数生成公式,发现一些结论;三是借助于非线性拟合技术,观察素数分布规律,利用其研究有关数论问题。-The first computer was used to prime factor decomposition of positive integers understanding of prime numbers, throug
zhaosushu
- 此程序有两种找素数功能 1 单个判断 2 范围查找 此程序有准确度高,速度快等优点-This program has two functions of prime numbers to find a single judge to check the scope of this program has two high accuracy and speed advantages of
eladuosai
- 是一种从按照顺序排列的所有自然数中找出素数的方法-Is an order from all natural according to the number of ways to find prime numbers
ex4
- 生产者消费者算法 找素数线程每次只放一个素数 显示素数线程每次只显示一个素数-Producer-consumer algorithm
456
- 插入一组数、时鲜用于计算素数的算法。假定我们要找出小于10的所有素数,其中共有2,3,4,5,6,7,8,9,10九个数,然后取走最小的数2并声明它就素数,然后筛掉2的倍数。重复上面的步骤直到空筛时,就可选出所有素数。-ruihiur heef bu vbuy bui buo bui bi bi bfuei buifwe buiw
find-prime-numbers
- 利用C语言实现从3-1000之间找出所有的素数,算法比较简洁-Just use the most simple C language to find all the prime numbers between 3 and 1000
qiusushu
- 找出素数规律,编程求出100到200以内的所有素数。-Find out the law of prime numbers, programming to calculate all the prime numbers less than 100-200.
jisuanqi
- 1、创建一个计算器(非可视化界面),可以进行常用的加减乘除算术运算。 2、请找出3至1000范围内最大的10个素数,并计算出这10个素数的累加和。 3、使用简单if语句编程,从键盘键入三个整数,然后按照从小到大的顺序将其输出。 -1, create a calculator (non-visual interface) that can be used arithmetic arithmetic. 2, identify the range of 3-1000 largest pri
ShuJuJieGou-KeChengSheJi
- 产生两列随机数列:1.找出其中的素数2.将相同数转化为二进制输出3.统计相同数个数4合并两数列5.分别删除数列1中被2整除的数和删除数列2中被3整除的数-Generates two random number sequence: 1. Figure out where the primes 2 would be the same as the number into binary output 3. Statistical same number number 4 merge two serie
Question1
- 找素数,找前五十个素数,十个一行,共五行-prime number
Guess_Prime
- 判断一个数是否是高斯素数,首先找出高斯整数,然后再进行挑选-Determine whether a number is a Gaussian prime, first find out the Gaussian integers, then pick and choose
新建文件夹
- 判断素数 输入10个学生5门课的成绩,分别用函数求:①每个学生平均分;②每门课的平均分;③找出最高的分数所对应的学生和课程。(Enter 10 students, 5 classes of results, respectively, with the function of seeking: (1) each student average; 2 the average of each class; find the highest scores corresponding to the st
素数 平均数 最高
- 判断素数; 输入10个学生5门课的成绩,分别用函数求:①每个学生平均分;②每门课的平均分;③找出最高的分数所对应的学生和课程。(Judgment prime; Seek average and highest marks.)