搜索资源列表
判断素数的个数
- 判断101-200之间有多少个素数,并输出所有素数。 1.程序分析:判断素数的方法:用一个数分别去除2到sqrt(这个数),如果能被整除, 则表明此数不是素数,反之是素数。 -judgment 101-200 between the number of primes, and the export of all prime numbers. 1. Program Analysis : judgment in several ways : with a few were t
RSAExample
- 一个素数测试算法,运用最简单的素数测试方法 把所有比它小的数都一一除过-a prime test algorithm, using the most simple-a few test methods all over it are several small inter-off on January 1
fjzys
- 你只需要输入一个大于2的数,就能自动判断这个数是否是素数,如果不是素数就自动分解质因数。 -you only need to import a few of the more than 2, will automatically judge whether the number is prime, prime, if not automatically decomposition quality factor.
qiusushu
- 求任意自然数中素数的和,可以校验输入的数是否自然数,并显示出所有素数-seeking arbitrary natural number which primes and can check whether the number of imported natural number, and demonstrated that all prime numbers
moni-momi
- 2的16次幂正整数d与n,编写计算d-1 (mod n) 的程序; 2、对于三个不超过2的16次幂正整数a、e与n,编写计算ae (mod n) 的程序。 在上述程序基础上写出下列程序: (1) 对给定的10000以内数判定其是否为素数; (2) 进行ElGamal体制的加密与签名。 -two of 16 power-positive integer d and n, calculate the preparation of d-1 (mod n); 2. For not m
7_Rsa
- RSA公钥加密算法基于大整数因式分解困难这样的事实。 选择两个素数,p,q。(一般p,q选择很大的数) 然后计算 z=p*q f=(p-1)(q-1) 选择一个n,使gcd(n,f)=1(gcd代表greatest common divider,一般n也选择一个素数), n和z就作为公钥。 选择一个s,0<s<f,满足n*s % f=1,s就作为私钥。-RSA public key encryption algorithm based on the integer fa
WienerFilter
- 对DIB图像进行维纳滤波复原操作的函数源码,输入参数如下,其他注释也很清晰 //LPSTR lpDIBBits:指向源DIB图像指针 //LONG lWidth:源图像宽度(象素数) //LONG lHeight:源图像高度(象素数)-right DIB images Wiener filter recovery operation of the source function, input parameters are as follows, Other Notes is clea
编写一个判断一个数字是否是素数的函数
- 编写一个判断一个数字是否是素数的函数,利用该函数求200以内的素数之和。(素数指除了1和它本身之外,该数没有其他因子,例如101就是一个素数。)-Write a judge whether a number is prime function, using the function evaluation within 200 prime numbers. (In addition to a prime number, and it refers to itself, not the number
assembly
- 里面有六个汇编程序,分别为: 实验一:在屏幕上显示数字串“0123456789”,每串一行,共显示10行。 实验二:从键盘上输入一含有多个随机出现的空格的字符串,滤出其中所有空格后,输出显示不含空格的该字符串。 实验三:从键盘输入一个字母,然后输出它的前一个字母,和后一个字母。这里必须考虑大小写字母,还要考虑A、a只会输出它后面那个字母,Z、z只会输出它前面那个字母。 实验四:显示小于1000的素数(用十进制数显示它们)。 实验五:分别统计内存中从0f00H开始的1024个
使用循环进行数组排序
- 利用labview编写程序: 4、使用循环进行数组排序 要求:可以多次操作,直到点退出按钮。 5. 产生一个3×3的整数随机数数组,随机数要在0到100之间,然后找出数组的鞍点,即该位置上的元素在该行上最大,在该列上最小,也可能没有鞍点。如下图所示: 要求:加上数组元素数设置以及redo按钮重新取值计算 -Labview programming: 4, using a loop array sorting requirements: multiple operati
Demo
- 判断一个数是否为素数。用户输入一个自然数后,点击验证,会提示该数是否为素数。(Determine whether a number is a prime number. After a user enters a natural number, click verify to indicate whether the number is a prime number.)
zhaomayabng
- 计算素数的个数并挑选出矩阵中满足序号为素数的数(Calculate the number of prime numbers and pick out the number in the matrix that satisfies the ordinal number)
mersenne_final
- 证明p=89、107、127、521、607、1279时Mp=2p-1是Mersenne素数,并打印出这些数的所有位数(It is proved that when p=89, 107, 127, 521, 607, 1279, Mp=2p-1 is the prime number of Mersenne, and all the digits of these numbers are printed ou)
字符串综合
- 素数对 统计单词数 反正很简单也很容易学 信息竞赛入门水题(A prime number is simple to count the number of words, and it's easy to learn the entry of information competition.)
常用函数
- 用筛法求素数的基本思想是:把从1开始的、某一范围内的正整数从小到大顺序排列, 1不是素数,首先把它筛掉。剩下的数中选择最小的数是素数,然后去掉它的倍数。依次类推,直到筛子为空时结束。如有: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1不是素数,去掉。剩下的数中2最小,是素数,去掉2的倍数,余下的数是: 3 5 7 9 11 13 15 17 19 21 23 25 2
判断素数
- 判断101-200之间有多少个素数,并输出所有素数。 1.程序分析:判断素数的方法:用一个数分别去除2到sqrt(这个数),如果能被整除, 则表明此数不是素数,反之是素数。(Determine how many primes are there between 101-200 and output all the prime numbers. 1. program analysis: the method of judging the prime number: 2 t
可逆素数
- 输入一个数判断该数是否是一个可逆素数,如果是输出**是可逆素数,否则为不是!(Enter a number to determine if the number is a reversible prime number. If it is output * is a reversible prime number, otherwise it is not!)
一千以内素数
- 素数为除了1和自己本身以外无法被除尽的数 本程序可以得出一千以内的所有素数(Prime numbers are all primes less than one thousand except for 1 and beyond itself.This program can draw all the prime numbers within one thousand)
main
- 题目描述 令Pi表示第i个素数。现任给两个正整数M <= N <= 10000,请输出PM到PN的所有素数。 输入描述: 输入在一行中给出M和N,其间以空格分隔。 输出描述: 输出从PM到PN的所有素数,每10个数字占1行,其间以空格分隔,但行末不得有多余空格。 输入例子: 5 27 输出例子: 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79
素数
- 通过C语言寻找素数的一个程序,可以判断并输出所输入的数当中的素数