搜索资源列表
classicC100
- 经典C程序100例,对于初学者非常值得研究.内有各种排序,找素数问题,字符串处理等.-classic C program hundred cases for beginners is worth studying. There are various sort, finding prime numbers. string processing.
The-inverted-triangle
- 详细的c#算法,包括7行倒三角,乘法口诀表,买东西,求和公式,找素数等基本算法大全-The inverted triangle
RSA-CPP
- RSA算法非常简单,概述如下: 找两素数p和q 取n=p*q 取t=(p-1)*(q-1) 取任何一个数e,要求满足e<t并且e与t互素(就是最大公因数为1) 取d*e t==1 这样最终得到三个数: n d e 设消息为数M (M <n) 设c=(M**d) n就得到了加密后的消息c 设m=(c**e) n则 m == M,从而完成对c的实现-RSA algorithm is very simple, are summarized as follows: find two prim
5
- 1、一个判素数的函数,在主函数输入一个整数,输出是否为素数的信息。 2、输出杨辉三角前十行 3、十十五个数由大到小的顺序存放在一个数组,输入一个数,折半法找出该数是数组中的第几个,若不在,输出“无此数” 4、输出所有水仙花数(各位数字立方和等于本身) 5输出100以内的完数(一个数等于其因子之和) -1, a function of the number of sub-prime, an integer in the main function of the input, t
实验11
- 输入一个数n,可以找到n以内的所有素数(找素数)(请看p125 3(8))(nput a number n, you can find all primes within n.)